Question
Project Description Generate a program that calculates the all items total, the discount amount, the subtotal, the sales tax amount, and the grand total for
Project Description
Generate 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 manually for the customer as well.
Sample Run
Department Store Sales Tax and Grand Total Application
Data Entries: Enter 0 to end your input Cost of item: 35.99 Cost of item: 27.50 Cost of item: 19.59 Cost of item: 0 All items total: $83.08
Sales tax rate (%): 6 Promotion code: 123
Discount amount: $1.00 Subtotal: $82.08 Sales tax amount: $4.92 Grand total: $87.00
Continue? y/Y/n/N: y
Data Entries: Enter 0 to end your input Cost of item: 10.99 Cost of item: 35.50 Cost of item: 11.52 Cost of item: 21.58 Cost of item: 0 All items total: $79.59
Sales tax rate (%): 12 Tax rate should be from 6 to 10 Sales tax rate (%): 9 Promotion code: 456
Discount amount: $2.00 Subtotal: $77.59 Sales tax amount: $6.98 Grand total: $84.57
Continue? y/Y/n/N: y
Data Entries: Enter 0 to end your input Cost of item: 95.21 Cost of item: 0 All items total: $95.21
Sales tax rate (%): 10 Promotion code: 999 Invalid promotion code. Try again Promotion code: 789
Discount amount: $3.00 Subtotal: $92.21 Sales tax amount: $9.22 Grand total: $101.43
Continue? y/Y/n/N: Y
Data Entries: Enter 0 to end your input Cost of item: 152.50 Cost of item: 59.80 Cost of item: 0 All items total: $212.30
Sales tax rate (%): 8
Discount amount: $21.23 Subtotal: $191.07 Sales tax amount: $15.29 Grand total: $206.36
Continue? y/Y/n/N: N
Program is terminated
C programming would work. Thanks
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