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

  Approach for building site in-house with existing staff

Web site Consider your options for building the site in-house with existing staff, or outsourcing the entire operation. Decide which strategy you believe is in your company's best interest and create a brief presentation outlining your position.

  Create program to calculate and display number of miles

Create a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the drivers speed.

  Discuss the purpose of the php procedures

Discuss the purpose of the PHP procedures that you have written.

  Write the program which reads two strings

Write the program which reads 2 strings, age (as a 4 bit binary number) followed by first name from keyboard then converts age from binary to decimal and prints out age in decimal.

  What is sequential flow of a program

What is sequential flow of a program? What is branching within a program? How is branching controlled? What is the role of an if statement in control structures

  Write non-recursive function-compute n-th fibonacci number

Fibonnacci series 0,1,1,2,3,5,8,13,21,... starts with terms 0 and 1 and has property that each succeeding terms is sum of the two preceding terms. Write the non-recursive function which computes the n'th Fibonacci number.

  Determines the aproximate number

Show how this can be done in a loop so the user can see resuts in a table. Let the output display and have headings for Day and Number of Bacteria Present on that day?

  Write function which takes a string as the argument

Some examples are: "1234321", "C", "ABCBA". Write down a function which takes a string as the argument and returns 1 if string is palindrome and 0 otherwise.

  Prompt for user login to begin using the system

Suggest an application system which is able to perform some arithmetic computations, like commission system, encryption system, timer system, etc, from anyone of the following industry.

  Write a new class file with a main() method in the project

Write a new class file with a main() method in the same project, use it to load in the names.txt, sort the names, and store them to a file called, nameout.txt. Each name on its own line.

  Program creates the basic user interface code

Scenario and SummaryThis program creates the basic user interface code that can be used in the following week's iLab assignments. The assignment will help you get started using the programming environment and some practice with coding. You will al..

  What programming language is the csci project written in

The CSCI and CINS students enrolled in the senior capstone project course (CSCI/CINS 490) will be presenting posters of projects each student has been working on this semester. You are to learn about three of these projects and do a writeup of ea..

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