A room needs to be painted that has four walls.  The room is rectangular in shape.  All four walls are the same height.  Two of the walls on the opposite side of each other have the same length.  The other two walls on the opposite side of each other have the same width.  Paint is purchased based on the amount of square footage that needs to be painted.  Assume the room has a standard flat ceiling (no angles nor cathedral ceiling).  Input the height, length, and width measurements in feet.  Calculate and output each of the following: The square feet of walls need to be painted The square feet of ceiling needs to be painted After calculating the walls square footage and the ceiling square footage, determine which of the two square footages is larger and display which of the two is the larger square footage with an appropriate message stating which one is the larger square footage. (use a sequential structure and a decision structure)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 5GZ
icon
Related questions
icon
Concept explainers
Question

A room needs to be painted that has four walls.  The room is rectangular in shape.  All four walls are the same height.  Two of the walls on the opposite side of each other have the same length.  The other two walls on the opposite side of each other have the same width.  Paint is purchased based on the amount of square footage that needs to be painted.  Assume the room has a standard flat ceiling (no angles nor cathedral ceiling).  Input the height, length, and width measurements in feet.  Calculate and output each of the following:

  1. The square feet of walls need to be painted
  2. The square feet of ceiling needs to be painted

After calculating the walls square footage and the ceiling square footage, determine which of the two square footages is larger and display which of the two is the larger square footage with an appropriate message stating which one is the larger square footage.

(use a sequential structure and a decision structure)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning