Question: Write a C++ program that inputs the price of a shoe in a shop, then deducts the discount from the price of the shoe as

 Write a C++ program that inputs the price of a shoe

Write a C++ program that inputs the price of a shoe in a shop, then deducts the discount from the price of the shoe as follows: 20% discount if the price of the shoe is above or equal 50BD. 10% discount if the price of the shoe is more than or equal 20 BD and less than 50 BD. 5% discount if the price of the shoe is more than or equal 10 BD and less than 20 BD. 0% discount if the price of the shoe is below 10 BD. Then, your program should output: I The initial shoe price, the discount amount and the final shoe price after discount. All numbers should be displayed with 3 decimal places

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!