Production tracking is important in many manufacturing environments (e.g., the pharmaceuticals industry, children’s toys, etc.). The following ER diagram captures important information in the tracking of production. Specifically, the ER diagram captures relationships between production lots (or batches), individual production units, and raw materials.
RunVenu es Code the class Run Venues . The outline of the class is as follows: public class RunVenues { public static void main(String[] args) { //Add code 1 here //Add code } } 1 2 here Create an object of the type VenueControlClass . . 2 Call the menuControl() in the VenueControlClass class by using the object. 6 Applications Development Foundations I
Code a method, menuControl() that is void. This method controls the application. Processing includes: Call the menu() method. Use a switch statement and depending on the option returned by menu(), it calls the appropriate method(). Refer to the menu() for the available options.
Code a method problemlab(). This method has no parameters and is void. This method displays all computer labs that have less working computers that number of seats. Use the methods problemVenue() and show() coded in question 2. Expected output (take note of headings and other formatting): Problem computer labs Building name: Engineering Venue number: 1.35 Number of seats: 50 Number of working computers: 30 ------------------------- Building name: Engineering Venue number: 1.24 Number of seats: 40 Number of working computers: 35 -------------------------
Loop through the array and use the show() of every object to display the object details. c) Print a line after each object is displayed. Example of expected output: Displaying all venues -------------------- Building name: Engineering Venue number: 2.38 Number of seats: 80 ------------------------- Building name: Engineering Venue number: 1.1 Number of seats: 40 Number of working computers: 40 ------------------------- Building name: Engineering Venue number: 2.60 Number of seats: 60
Code a method named createComputerLab(). This method has no parameters, but return a ComputerLab object. Required: a. Define a Scanner variable to read from the keyboard. b. Define variables for building name, room number, number of seats and number of working computers. Prompt the user to type data values for each of the variables and read the values from the keyboard. c. Define and create a ComputerLab object from the data read from the keyboard. d. Return this ComputerLab object. 6 Code a method displayAllRooms(). This method has no parameters and is void. This method displays all objects in the array. Required: a) Display a heading.
Code a method menus() that returns an int value. This value represents the option the user has chosen from the available menu options. Required: a) Define a Scanner variable to read from the keyboard. b) Define an int value, named option. c) Display a menu in the following format: 1: Add room 2: Display rooms 3: Display problem labs 4: Exit d) Read the user’s option from the keyboard into the variable option. e) Return the option read from the keyboard. 4 Code a method named createVenue(). This method has no parameters, but returns a Venue object. Required: a) Define a Scanner variable to read from the keyboard. b) Define variables for building name, room number and number of seats. Prompt the user to type data values for each of the variables and and read the values from the keyboard. c) Define and create a Venue object from the data read from the keyboard. d) Return this Venue object.
VenueControlClass This class has a menu control method that allows users to add a Venue or ComputerLab object to an array. The array allows for 20 elements, but the array may contain less elements. The number of elements if the arrays is available in the variable numberOfVenues. Code the attributeas and methods as specified. 1 Code an array that can hold 20 Venue objects. 2 Code the numberOfVenues attribute. 3 Code a no-argument constructor. In this constructor, a) Add 3 Venue objects to the venues array. b) Add 3 ComputerLab objects to the venues array. c) Set numberOfVenues to 6.
Building name: Engineering Venue number: 2.38 Number of seats: 80 3 Write the method problemVenue() for the Venue class. This method returns the boolean value false. ComputerLab class Code the attributes and methods as per diagram for the ComputerLab class. 1 Remember to call the superclass constructors in the coding of the ComputerLab constructors. 2 Remember to call the superclass toString() in the ComputerLab toString(). 3 Code the show() method. This method is void and displays the details of a ComputerLab object. Again, remember to call the show() of the superclass. Building name: Engineering Venue number: 1.24 Number of seats: 40 Number of working computers: 35 4 Code the method problemVenue. This method returns a boolean value of true if the numberSeats in the computer lab is more than the numberWorkingComputers, else a boolean value of false is returned.
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!