SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 21 Dec 2017 My Price 10.00

private static int data value named storeCounter

Need help with solving this code. Cant figure out where to start and have been working on it for the last day and a half. Please help.

Lab Assignment #10

Due date: 12:00 pm, 4/17/2017

Assignment Problem

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:

Homework Submissions & Assessment

Your submission should include:

1)      The assignment report containing the items specified in the previous section

2)      The Java source code.

Submit the report in the Word document and all Java source code files to the dropbox of this assignment. Make sure to check the completeness of your submission after they are submitted.

 

Task Items

Complete & Correct

Incomplete/
 Partially Correct

Missing

Solution Design
(UML Diagram) (15%)

100%

By %

0

Solution Pseudo-Code (Java comments) (10%)

100%

By %

0

Java Program (60%)

100%

By %

0

Testing Completeness (15%)

100%

By %

0

 

Attachments:

Answers

(5)
Status NEW Posted 21 Dec 2017 09:12 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)