a. Write a Java class that declares variables to represent the length and width of a room in feet and the price of carpeting per square foot in dollars and cents. Assign appropriate values to the variables. Compute and display, with explanatory text, the cost of carpeting the room. Save the class as Carpet.java.
b. Convert the Carpet class to an interactive application. Instead of assigning values to the length, width, and price variables, accept them from the user as input. Save the revised class as Carpet2.iava.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.