Question: Write in C + + please : Project Description Create a program that calculates the all items total, the discount amount, the subtotal, the sales

Write in C++ please : Project Description
Create a program that calculates the all items total, the discount amount, the subtotal, the sales tax amount, and the grand total for the department store. The program asks the sales associate to enter the cost of an item repeatedly until she or he enters zero to terminate the data entries. The associate should enter the current sales tax rate and the promotion code for the customer as well.
Sample Run
Department Store Sales Tax and Grand Total Application
Data Entries: Enter 0 to end your inputCost of item: 35.99Cost of item: 27.50Cost of item: 19.59Cost of item: 0All items total: $83.08
Promotion code: 123Discount amount: $1.00Subtotal: $82.08
Sales tax rate (%): 6Sales tax amount: $4.92
Grand total: $87.00
Continue? y/Y/n/N: y
Data Entries: Enter 0 to end your inputCost of item: 10.99Cost of item: 35.50Cost of item: 11.52Cost of item: 21.58Cost of item: 0All items total: $79.59
Promotion code: 456Discount amount: $2.00Subtotal: $77.59
Sales tax rate (%): 12Tax rate should be from 6 to 10Sales tax rate (%): 9Sales tax amount: $6.98
Grand total: $84.57
Continue? y/Y/n/N: y
Data Entries: Enter 0 to end your inputCost of item: 95.21Cost of item: 0All items total: $95.21
Promotion code: 999Invalid promotion code. Try againPromotion code: 789Discount amount: $3.00Subtotal: $92.21
Sales tax rate (%): 10Sales tax amount: $9.22
Grand total: $101.43
Continue? y/Y/n/N: Y
Data Entries: Enter 0 to end your inputCost of item: 152.50Cost of item: 59.80Cost of item: 0All items total: $212.30
Sales tax rate (%): 8
Discount amount: $21.23Subtotal: $191.07Sales tax amount: $15.29Grand total: $206.36
Continue? y/Y/n/N: N
Program is terminated
Specifications
* The sales tax rate is from 6% to 10%.
* The system accepts only the following promotion codes for a discount amount:
*123($1 discount)
*456($2 discount)
*789($3 discount)
*0(no discount)
* If the all items total is $100 or more, the discount amount is 10% of the total. No other discounts are applied.
* The subtotal, the sales tax amount, and the grand total are calculated as follows:
* subtotal = all items total - discount amount
* sales tax amount = subtotal *(sales tax rate /100)
* grand total = subtotal + sales tax amount
* Your project source file should contain the following functions:
* int main()
* void display_title(): Displays the title of the application.
* double get_all_items_total(): Gets all the costs of items and returns the total.
* double get_discount(double total): Returns a discount amount which is based on the total. It could be $1, $2, $3, $0, or 10% if the total is $100 or more.
* double get_sales_tax(double subtotal): Returns the sales tax amount which is based on the subtotal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!