Question: Write a program according to the flow chart // This program assigns a 10% discount if a customer orders more than 12 items, and a

Write a program according to the flow chart 

// This program assigns a 10% discount if a customer orders more than 12 items, and a 20% discount if a 

// This program assigns a 10% discount if a customer orders more than 12 items, and a 20% discount if a customer orders more than 24 items (start) Declarations string name num items num PRICEEACH= 1.39 num CUT OFF1 = 12 num CUT OFF2 = 24 num DISCOUNT1 = 0.10 num DISCOUNT2 = 0.02 num total string QUIT = "ZZZ" housekeeping () name QUIT? No finish() (stop finish() Yes output "Program finished" return detailLoop() No No items < CUT_OFF1? (housekeeping()) output "Enter gique customer name >> input name detailLoop () return output "Enter number of items >> = Yes input items total items * PRICEEACH items < CUT_OFF1? total total- total DISCOUNT2 output "Total for " name, "is $", total. "Enter customer name or ", QUIT, "to quit >> Yes input name return. total total total DISCOUNT 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include include using namespace std int main declare variables and consonants string name int items ... View full answer

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!