subject

The westfield carpet company has asked you to write an application that calculates the price of carpeting for rectangular rooms. to calculate the price, you multiply the area of the floor (width time length) by the price per square foot of carpet. for example, the area of floor that is 12 feet long and 10 feet wide is 120 square feet. to cover that floor with carpet that costs $8 per square foot would cost $960. (12 x 10 x 8 = 960.) first, you should create a class named roomdimension that has two fields, one for the length of the room and one for the width. the roomdimension class should have a method that returns the area of the room. (the area of the room is the room’s length multiplied by the room’s width.) next you should create a roomcarpet class that has a roomdimension object as a field. it should also have a field for the cost of the carpet per square foot. the roomcarpet class should have a method that returns the total cost of the carpet

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories.
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
You know the right answer?
The westfield carpet company has asked you to write an application that calculates the price of carp...
Questions
question
History, 20.11.2020 01:00
question
Health, 20.11.2020 01:00
question
Mathematics, 20.11.2020 01:00
question
Mathematics, 20.11.2020 01:00
question
Mathematics, 20.11.2020 01:00
Questions on the website: 13722363