Answered step by step
Verified Expert Solution
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
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 assistStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started