week 10 javaTopsolutions
Exception handling should be used on all numeric input and when searching the array(s).
Exercise 1. (20 points):The Billy Goat Fast-Food restaurant sells the following products:
Write an application that displays the menu to the user and allows them to enter a product continuously until a sentinel value is entered. After each product is entered, display its price and fat content or the message “Sorry, we do not carry that”.
After all products have been entered, display the total price for the order.
Note: a sentinel value is a predetermined value entered by the user to stop the process "Enter a number from 1-3, or Q to quit" Q would be the sentinel value that would stop the input process.
- 8 years ago
Purchase the answer to view it