Design a class named restaurant

Assignment Help JAVA Programming
Reference no: EM131587140

Design a class named Restaurant. The class contains:-A private static int data value named storeCounter that starts at 1 and increments for each new restaurant item that is created
-A private array of string values called Menu
-A private int value called StoreID
-A boolean value called OpenClosed
-A no-argument constructor that creates a new Store object and performs the following:-Sets storeID to storeCounter, then increments storeCounter-Sets OpenClosed to true (Open)-Sets Menu to be size 3 with no values inside-A two-argument constructor that creates a new store object, accepts an int value, accepts a boolean value, and performs the following:

Sets storeID to storeCounter, then increments storeCounter
-Sets OpenClosed to the boolean value
-Sets Menu to be the size of the int value
- A void method called setMenu() that allows the user to input string values to populate the menu array
-A void method called setMenuEasy() that sets the first three indexes of the menu array to the following: "Hamburger", "Hot dog", and "Pizza"
-A void method called Details() that prints out the following properties of a restaurant: StoreID, the menu items, and whether or not the restaurant is open
In the main method, perform the following:
-Create 3 new restaurants
-The first restaurant should have the default parameters
-The second restaurant should be open and have a menu size of 2
-The third restaurant should be open and have a menu size of 3
-Call setMenuEasy() for the 1st and 3rd restaurant
-Call setMenu() for the 2nd restaurant
-Call Details() for all three restaurants
Additional Requirements:*Include the UML diagram for the Restaurant class.*Program header, pseudocode explaining the design of the class and testing in the main()*Include a screenshot of a test run of the main(), example below:
Your submission should include:
The assignment report containing the items specified in the previous section
The Java source code.

Reference no: EM131587140

Questions Cloud

Explain your interpretation of measure of central tendency : Calculate the mean, median, mode, and standard deviation for the burglary statistics provided on the metropolitan area of Battawba.
How should travis account for the bad debt : In 2016, final settlement was made and Travis received $12,000. Assuming the loan is a nonbusiness bad debt, how should Travis account for the bad debt
What is conversion ratio of the debenture : What is conversion ratio of the debenture? What is the conversion value as a percent of face value? Can the market price be less than the conversion value?
Marginal revenue for the customer : If the only pool cleaning service in town charges $50 per cleaning, he has 10 weekly customers
Design a class named restaurant : Design a class named Restaurant. The class contains:-A private static int data value named storeCounter that starts at 1 and increments for each new restaurant
Compute the earnings per share of common stock : Ziegler Corporation reports net income of $380,000, Compute the earnings per share of common stock
What you learned about yourself as a public administrator : What you learned about yourself as a public administrator based on your reaction to the readings.How you might apply this knowledge in your future practice.
Determine the worst-case time complexity : Determine the worst-case time complexity of the following pseudocode algorithm. Assume that DoOtherStuff has a time complexity of O(n) where n = r-l
What are the total futa and suta taxes for the payroll : what are the total FUTA and SUTA taxes for the payroll?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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