Create a solution that allows manager to enter up food items

Assignment Help Programming Languages
Reference no: EM131270044

You are working at a Rico's, a new Mexican restaurant. The restaurant must keep track of all food items and their prices on its menu. The restaurant manager has asked you to also figure out the average price of a menu item so she can compare it to other restaurants. To limit confusion, the restaurant manager will only permit up to 10 items on the menu at a given time. However, the manager might try expanding their menu in the future and may want to increase the number of food items contained on the menu. Create an object-oriented solution that allows the restaurant manager to enter up to 10 food items. An error message must display if the manager tries to enter more than 10 food items. Display a summary of all food items, the number of food items entered, and the average price of a food item on the menu.

Note: You must demonstrate use of an array of objects and JOptionPane.

Hint: Don't forget about the different modifiers available (e.g. static) to determine what might be needed for each variable and method.

The example run below shows how the program would run. Note, user input is denoted in orange.

Example run

Enter the name for menu item 1:
Taco
Enter the price of Taco:
1.00
Enter another menu item?
Yes
Enter the name for menu item 2:
Enchilada
Enter the price of Enchilada:
A
Sorry, you entered an invalid menu item price. Please try again
Enter the price of Enchilada:
2.50?
Enter another menu item?
Yes
Enter the name for menu item 3:
Burrito
Enter the price of Burrito:
2.00
Enter another menu item?
No

Reference no: EM131270044

Questions Cloud

Assuming the capacity of the lift truck is one unit load : The route sheet for a part is as follows: A-F-E-D-C-B-A-F Two thousand pieces will flow through from the first machine A to the final machine F based on the given sequence of operations. A unit load size of 50 is initially specified at the first mach..
What is the issue of consideration : There are four models of Intervention related to the responsibility of the scientist or practitioner. Please choose one of the following and explain it: Total intervention, No intervention, Limited intervention, and Directed intervention.
What is the byte address of memory word 42 : Draw the number 0xFF223344 stored at word 42 in both big-endian and little-endian machines. Your drawing should be similar to Figure 6.4. Clearly label the byte address corresponding to each data byte value.
How jaguar implements aggregate planning : How jaguar implements aggregate planning?
Create a solution that allows manager to enter up food items : Create an object-oriented solution that allows the restaurant manager to enter up to 10 food items. An error message must display if the manager tries to enter more than 10 food items.
Ethical decision making : Should the Washington Wizards changed their name from the washington Bullets? Remember to analyze the dilemma from more then one perspective.
Briefly summarize the research study you selected : Review the article, "The Effects of Pretrial Publicity on Juror Verdicts: A Meta-Analytic Review." Pay particular attention to the studies reviewed in this meta-analysis and think about how a forensic psychology professional working in a court set..
Write a java gui application using a netbeans ide : Write a Java GUI application using a NetBeans IDE that does home utility auditing. The user should be able to do the Enter the cost per kilowatt-hour.
Plan a financial strategy to get rid of the war : Imagine a situation where poland is invading with Sybria and there is a war between these two countries and they need two different philosphies to end all the war. Plan a financial strategy to get rid of the war. Please put different points through..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd