Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what would this look like in java step by step 2. Develop a static method named paintAmount that will determine the number of gallons of

image text in transcribed

what would this look like in java

step by step

2. Develop a static method named paintAmount that will determine the number of gallons of paint required to paint the walls of a room. The method should receive fve parameters: room width, room length, wall height, number of windows, and number of doors. The method should calculate and return the number of gallons needed to paint the room. Constants should be defined for fixed values. Known facts: . Rooms are rectangular - All wall area is to be painted; windows and doors are not to be painted Rooms are constructed using a standard window size covering 8 square feet Rooms are constructed using a standard door size covering 17 square feet https /aacc.instructure.comcourses/82937/assignments 578837 1/2 1/14/2018 ts 1 One gallon of paint will cover 115 square feet of wall area The main method should prompt the end user for the input needed by the paintAmount method as well as the paint color. The main method will pass the necessary data to the paintAmount method and capture the value returned. The main method should display the number of gallons of paint needed and the paint color to the end user using a descriptive display. You may assume that only numeric input will be supplied by the end user for the room measurements and number of windows and doors. Consider rounding up to the nearest whole number for the number of gallons needed. The Math.round) method can assist

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions