Question: Design a program (Write the Psuedo Code) for the Caf Noir Coffee Shop to provide some customer market research data. When a customer places an
Design a program (Write the Psuedo Code) for the Caf Noir Coffee Shop to provide some customer market research data. When a customer places an order, a clerk asks for the customers 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 reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 10 items, the program reprompts 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 and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also, display the average customer age as well as counts of the number of items ordered by customers under 45 and by customers 45 and older.
Step by Step Solution
There are 3 Steps involved in it
To design the program for the Caf Noir Coffee Shop and provide the market research data as described follow this structured pseudo code plan This appr... View full answer
Get step-by-step solutions from verified subject matter experts
