Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

Students also viewed these Databases questions

Question

Repeat the previous problem, only use Monte Carlo simulation.

Answered: 1 week ago

Question

Consider this article:...

Answered: 1 week ago

Question

Question What is a Roth 403 (b) plan?

Answered: 1 week ago