Jacket

4.3

6 votes
Problem

A jacket was originally priced at N dollars. The price was reduced by A percent C times and increased by B percent D times.


TASK:
Write a program that will display the final price.


INPUT:
1 <= N <= 1000 dollars,
0 <= A <= 1 percent,
0 <= B <= 1 percent,
0 <= C <= 100 times,
0 <= D <= 100 times


OUTPUT:
Final price

(NOTE: For the output, round it off to the nearest hundredths and place a dollar sign, i.e. $317.02.)

Time Limit: 2
Memory Limit: 256
Source Limit:
Editor Image

?