Question: Stuck on this SuperMarket Class, Java please! class Supermarket ( 80 points) Determine and use the necessary import statements The following instance variables are used

Stuck on this SuperMarket Class, Java please!

Stuck on this SuperMarket Class, Java please! class Supermarket ( 80 points)Determine and use the necessary import statements The following instance variables areused - A String superName with a standard accessor and standard mutator

class Supermarket ( 80 points) Determine and use the necessary import statements The following instance variables are used - A String superName with a standard accessor and standard mutator - A Random variable of type randy - An int bigCheckerQfcupied set to 0 - An int fastCheckerQccupied set to 0 - The following Afraxtists, each of which can be instantiated when declared - An ArrayList of type Shopper called currentShoppers - An ArraxList of type BigShopper called bigCheckQut - An ArraxList of type FastShopper called fastCheckQur. An ArrayList of type Shopper called doneShopping Supermarket has a single constructor that accepts a String value and an int value It calls setSuperName with that value It uses the int value as a seed to initialize randy Method openSupermarket with no parameters and a void return Create a loop with i going from 0 to less than 14 inclusive if i, is divisible by 3 Create a new BigShopper instantiated with start Time equal to 0 Add the BigShopper to the currentShoppers ArrayList else Create a new FastShopper instantiated with startTime equal to 0 Add the FastShopper to the currentShoppers ArrayList Method operateSupermarket with an int parameter with the minutes to run the simulation and a void return Set an int minCounter with the current minute equal to 1 While (currentShoppers is not empty or bigCheckQut is not empty or fastCheckout is not empty //This section lets more shoppers in If the mincounter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!