Question: Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price

Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price of the item based on the rate of the discount shown in the sample run below .

Hints:

Make sure your data types for your variables are appropriate

The user must be able to enter the original price at the keyboard

Sales price = Original price (1 - Percent off). For example, if you take 20 percent off of a $100 item, the sale price will be 100 (1 - .20) = $80.

Format your output to line up columns and data in your chart

Sample Run:

Please enter the original price of the item:

100.00

Original Price: $100.00

Discount Rate Sales Price

10% $90.00

20% $80.00

40% $60.00

60% $40.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!