Display a count of the number of items ordered by customers


Problem

The Café Noir Coffee Shop wants some market research on its customers. 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 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 30 and by customers 30 and older.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Display a count of the number of items ordered by customers
Reference No:- TGS02647038

Expected delivery within 24 Hours