Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 : ( Use a sequential structure and a decision structure ) A room needs to be painted that has four walls. The room

Problem 3: (Use a sequential structure and a decision structure)
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:
a. The square feet of walls need to be painted
b. 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.

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

Students also viewed these Databases questions