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

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 General Management Questions!