Question: Question 1 Write a C++ program that inputs the price of a shoe in a shop, then deducts the discount from the price of the
Question 1 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 os discount if the price of the shoe is below 10 8D. Then your program should output: 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
Get step-by-step solutions from verified subject matter experts
