Question: Do it in Simple Java Language! No hard coding please Load the menu for a restaurant from the data file restaurant.txt (it has the code,
Do it in Simple Java Language!
No hard coding please

Load the menu for a restaurant from the data file restaurant.txt (it has the code, product name & price in each line). Then, simulate the order taking process - keep getting the order string & generate well-formatted receipt in an infinte loop - use Store10a.java that we covered in the class for guidance & use Restaurant.java as the start-up file. You should create at least 3 minimum methods. Review the sample input & output to understand the expectations (this goes along with the sample data file I have provided). Your program should be generic - it should work for any menu contents and any order string. Attach your updated Restaurant.java and complete this assignment. No need to attach anything else. Enter your order: A1 A2 E1 E2 Bruschetta Caprese Flatbread 6.10 Lasagna Classico Capellini Pomodoro 7.99 5.29 6.99 Total XX.YY Enter your order: A1 E3 S1 Bruschetta Eggplant Parmigiana 8.99 Soda 5.29 1.99 Total XX.YY Enter your order: A1 E3 S1 E10 Bruschetta Eggplant Parmigiana 8.99 Soda E10 is invalid! 5.29 1.99 Total XX.YY Load the menu for a restaurant from the data file restaurant.txt (it has the code, product name & price in each line). Then, simulate the order taking process - keep getting the order string & generate well-formatted receipt in an infinte loop - use Store10a.java that we covered in the class for guidance & use Restaurant.java as the start-up file. You should create at least 3 minimum methods. Review the sample input & output to understand the expectations (this goes along with the sample data file I have provided). Your program should be generic - it should work for any menu contents and any order string. Attach your updated Restaurant.java and complete this assignment. No need to attach anything else. Enter your order: A1 A2 E1 E2 Bruschetta Caprese Flatbread 6.10 Lasagna Classico Capellini Pomodoro 7.99 5.29 6.99 Total XX.YY Enter your order: A1 E3 S1 Bruschetta Eggplant Parmigiana 8.99 Soda 5.29 1.99 Total XX.YY Enter your order: A1 E3 S1 E10 Bruschetta Eggplant Parmigiana 8.99 Soda E10 is invalid! 5.29 1.99 Total XX.YY
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
