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

  Produce the necessary instructions to swap the values

Assume variables x and y are stored in memory locations 100 and 101. Using machine language instructions from section 5.2.4, produce the necessary instructions to swap the values of x and y.

  Develop a calendar and scheduling system

Develop a calendar and scheduling system, This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the evaluation of your assignment...

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Show tic-tac-toe game scenario diagram

The assignment is not to implement this game in Ruby. Rather, the assignment is to use scenario diagrams to discover the objects, their responsibilities, and the messages they respond to

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Program to sort array by employee identification

Let a program which will read employee information into array of objects, sort array by employee identification number, write the sorted array, and calculate different statistics on data.

  Design interactive program using prewritten methods

Design an interactive program that does the following, using the prewritten methods whenever they are appropriate. Prompt the user for and read a library card number, which must be between 1000 and 9999.

  Bubble sort or selection sort to sort list before search

Write down program to test method seq0rderedSearch. Use either the method bubbleSort or selectionSort to sort the list before the search.

  Program to convert temperature in celcius from fahrenheit

Write the program which accepts the temperature in Fahrenheit from user and conversts it to Celsius by subtracting 32 from Fahrenheit value and multiplying result by 5/9. Show both values.

  What will the permissions string contain

If you execute ls -ld on the project38" directory, what will the permissions string contain? If you execute ls -l on the iapp_v_8 file contained in project38 , what will the permissions string contain

  The process of identifying the classes or functions

How the two programs were selected and The process of identifying the classes or functions for replacement

  Algorithm attributes and their importance.

Write a 2 page research paper (excluding title and reference pages) on algorithm attributes and their importance. Use two resources (Wikipedia sources are not permitted) and list each resource used at the end of the paper in the reference list sec..

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