Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started