Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price

Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price of the item based on the rate of the discount shown in the sample run below .

Hints:

Make sure your data types for your variables are appropriate

The user must be able to enter the original price at the keyboard

Sales price = Original price (1 - Percent off). For example, if you take 20 percent off of a $100 item, the sale price will be 100 (1 - .20) = $80.

Format your output to line up columns and data in your chart

Sample Run:

Please enter the original price of the item:

100.00

Original Price: $100.00

Discount Rate Sales Price

10% $90.00

20% $80.00

40% $60.00

60% $40.00

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

A single quote mark does what in Visual Basic?

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago