2023 Exception handling should be used on all numeric input and when searching the array s Exercise 1 20 points | Assignment Collections
Computer Science 2023 Week 10 Java
2023 Exception handling should be used on all numeric input and when searching the array s Exercise 1 20 points | Assignment Collections
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:
Product |
Price |
Fat (grams) |
Cheeseburger |
$2.49 |
23 |
Pizza |
$2.75 |
15 |
Fries |
$1.50 |
25 |
Salad |
$4.25 |
1 |
Chips |
$0.59 |
12 |
Pepsi |
$1.00 |
0 |
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.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.