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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year.chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
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
question
Mathematics, 04.07.2019 04:00
Questions on the website: 13722367