I need help with this solution in pseudocode.
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 reprompts the clerk
continuously. When the clerk enters fewer than 1 or more than 12 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 30 and by customers 30 and older.
I need help with this solution in pseudocode.
Please and thank you.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps