subject

Write in java
write a menu-driven program for de anza college food court. (you need to use methods ! ) display the food menu to a user (just show the 5 options' names and prices - no need to show the combos or the details! ) use numbers for the options and for example "6" to exit. ask the user what he/she wants and how many of it. (check the user inputs) and use trim() function to trim your inputs(if needed) keep asking the user until he/she chooses the exit option. a method to display the menu => displaymenu() a method to get inputs(optional but good to have it) => getinputs() a method to calculate the tax and the bill => a method to print the bill => use arrays to pass the quantities (quantity1,quantity2,quantity3,quan tity4,quantity5) from a method to another method. you can use a global variable for the prices like pricearray = [5.25,5.75,5.95,5.95,5.95] note: you can use your own code design and naming methods. better designs will get better grades. note: it is a good design if your main method is short and you call other methods from the main method. it means, it is better to use different methods instead of putting all your code in the main method. calculate the price. ask the user whether he/she is a student or a staff. there is no tax for students and 9% tax for staffs. add the tax price to the total price. tax cupertino 9.000% santa clara display the bill to the user. the bill includes: the food items the quantities the cost of them the total before tax tax amount total price after tax you can have your own design but you need to have a main method and get started from the main method . the name of methods also up to your design but the names should show what the methods do. only display 2 decimal points when displaying all the numbers. put at least two outputs (results after you run your code) at the end of your code as a multi-line comment. don't forget to put your name and a short description of your code on the top on your code. don't forget to test your code with positive and negative testing! (for more information see this page testing) your code should have comments for each methods. submit your code here.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, 710jonathan
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
image
Computers and Technology, 22.06.2019 21:30, mjweed2456
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
image
Computers and Technology, 22.06.2019 23:00, cchotshot
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, ayoismeisjjjjuan
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
You know the right answer?
Write in java
write a menu-driven program for de anza college food court. (you need to use met...

Questions in other subjects:

Konu
Social Studies, 03.02.2021 21:30