Question
Submit the ComputerLab and ComputerLabDemo.java files to canvas by the above time The ComputerLab.java file is a class (no main method): Which has private parameters
Submit the ComputerLab and ComputerLabDemo.java files to canvas by the above time
The ComputerLab.java file is a class (no main method):
Which has private parameters for: the room number, number of computers, cost of a machine, length and width of room. Have a static variable for the building (say Cassell Hall).
A constructor to read in and assign the 5 non-static variables.
Getters and setters for: the room number, number of computers, cost of a machine, length and width of room.
Create getter methods for computing the total costs of all the computers, and the Building name.
The ComputerLabDemo.java file (with main method):
Ask for the room number, number of computers, cost of a machine, length and width of room.
Create a new ComputerLab instance passing in the above 5 variables
Using the getters of the instance, print out the building name, the room number, the number of the computers in the room, the length and width of the room, and the total costs of all the computers.
Sample Run:
What is the room number? 116
How many computers? 36
How much does each computer cost? 800.00
Enter the length of the room: 40
Enter the width of the room: 25
Building Name: Cassell Hall
Room Number: 116
Number of computers in the lab: 36
Length of Room: 40.0 ft
Width of Room: 25.0 ft
Total Costs of Machines is $28,800.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started