Test Content Question 1 15 Points 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...


Test Content<br>Question 1<br>15 Points<br>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<br>follows:<br>20% discount if the price of the shoe is above or equal 40 BD.<br>10% discount if the price of the shoe is more than or equal 15 BD and less than 40 BD.<br>5% discount if the price of the shoe is more than or equal 7 BD and less than 15 BD.<br>0% discount if the price of the shoe is below 7 BD.<br>Then, your program should output:<br>The initial shoe price, the discount amount and the final shoe price after discount.<br>All numbers should be displayed with 2 decimal places.<br>Use the editor to format your answer<br>

Extracted text: Test Content Question 1 15 Points 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 40 BD. 10% discount if the price of the shoe is more than or equal 15 BD and less than 40 BD. 5% discount if the price of the shoe is more than or equal 7 BD and less than 15 BD. 0% discount if the price of the shoe is below 7 BD. 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 2 decimal places. Use the editor to format your answer

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here