subject

Assume that a gallon of paint covers about 350 square feet of wall space. Create an application with a main() method that prompts the user for the length, width, and height of a rectangular room. Pass these three values to a method that does the following:
1. Calculates the wall area of a room2. Passes the calculated wall area to another method that calculates and returns thenumber of gallons of paint needed.3. Displays the number of gallons needed.4. Computes the price based on a paint price of $32 per gallon, assuming that the paintercan buy any fraction of a gallon of paint at the same price as a whole gallon.5. Returns the price to the main() method.
The main() method displays the final price. For example, the cost to paint a 15- by-20-foot room with 10-foot ceilings is $64. Save the application as Paint Calculator. java.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 21:50
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
question
Computers and Technology, 25.06.2019 09:30
Is it possible to build a portal in real life?
Answers: 2
question
Computers and Technology, 25.06.2019 18:00
All of the following are benefits of automation except1. it reduces costs2. it improves precision 3. it eliminate human error4. it increases the number of employees stoichiometry is the same regardless of which two elements are being examined1. true2. falsewhat problem does chlorofluorocarbon create1. it causes lead poisoning 2. it causes great damage to the ozone layer3. it leaks into food as it cools the air on refrigerators4. it is responsible for most of the pollution created by automobilesa closed loop system is more sophisticated than an open loop system1. true2. false
Answers: 2
question
Computers and Technology, 26.06.2019 03:00
What information and options can be found on the file tab? check all that apply. a) page margins b) author of the document c) scrollbar settings d) saving a file e)opening a file f) adding a table g) inserting an illustration
Answers: 1
You know the right answer?
Assume that a gallon of paint covers about 350 square feet of wall space. Create an application with...
Questions
question
Mathematics, 18.03.2021 19:40
question
Mathematics, 18.03.2021 19:40
question
Mathematics, 18.03.2021 19:40
question
Mathematics, 18.03.2021 19:40
Questions on the website: 13722363