expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 27

Design a program for the Café Noir Coffee Shop to provide some customer market research data. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program re-prompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program re-prompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value on the third attempt, an error message is displayed

Step-by-step solution
Verified
like image
like image

Step 1 of 10

Flowchart:

Flowchart of program by which the orders placed by customers who reside in coffee shop 54984 are detected as follows:

    <div class=answer> Flowchart: Flowchart of program by which the orders placed by customers who reside in coffee shop 54984 are detected as follows:


Step 2 of 10


Step 3 of 10


Step 4 of 10


Step 5 of 10


Step 6 of 10


Step 7 of 10


Step 8 of 10


Step 9 of 10


Step 10 of 10

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon