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, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
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
Questions on the website: 13722363