Question: In java Q1: a. Write a Java class that declares variables to represent the length and width of a room in feet. Assign appropriate values

In java
Q1: a. Write a Java class that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables-for example, length =15 and width =25. Compute and display the floor space of the room in square feet (area =length * width). Display explanatory text with the value for example, the floor space is 375 square feet. b. Convert the Room class to an interactive application. Instead of assigning values to the length and width variables, accept them from the user as input. As output, echo the user's entries as well as displaying the floor space. Q2: a. Write a class that declares a variable named minutes, which holds minutes worked on a job, and assign a value. Display the value in hours and minutes; for example, 197 minutes becomes 3 hours and 17 minutes. Be sure to use a named constant where appropriate. b. Write an interactive version of the Time class that accepts the minutes worked from a user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
