In some older homes that do not have a central heating and air conditioning system, smaller air conditioning units made to fit inside of a window and cool a single room are used as an alternative way to cool the home. Depending on the size of the room and the amount of shade that the room has, different sizes of air conditioning units must be used in order to be able to properly cool the room.  The unit of measure for the amount of cooling that an air conditioner unit can provide is the BTU (British Thermal Unit) per hour.  Code a program that will calculate the correct size of air conditioner for a specific room size using the instructions below. Step 1:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In some older homes that do not have a central heating and air conditioning system, smaller air conditioning units made to fit inside of a window and cool a single room are used as an alternative way to cool the home.

Depending on the size of the room and the amount of shade that the room has, different sizes of air conditioning units must be used in order to be able to properly cool the room.  The unit of measure for the amount of cooling that an air conditioner unit can provide is the BTU (British Thermal Unit) per hour. 

Code a program that will calculate the correct size of air conditioner for a specific room size using the instructions below.

Step 1:

Ask the user to enter the length of their room (in feet).

Step 2:

Ask the user to enter the width of their room (in feet).

Step 3:

Calculate the area (in square feet) of the room by multiplying the length and the width of the room.

For example, if a room is 20 feet wide by 24 feet long, then its area is 20 * 24 = 480 square feet

Step 4:

Display a menu that asks the user how much shade the room gets.  The menu should have the following options:

  1.  
      1. Little Shade
      2. Moderate Shade
      3. Abundant Shade

Step 5:

Determine the capacity of the air conditioning unit that is needed for a moderately shaded room by using the information in the table below.

 

Room Size (sq. ft)

AC capacity (BTUs/hr)

Less than 250

5,500

250 to 500

10,000

501 to 1,000

17,500

Over 1,000

24,000

 

If the room has little shade, then the BTU capacity should be increased by 15% since the air conditioning unit must be able to produce extra cooling. 

If the room has abundant shade, then the BTU capacity should be decreased by 10% since the air conditioning unit does not need to work as hard to cool a shaded room.

Step 6:

Create a String object in memory to hold the text “Air Conditioning Window Unit Cooling Capacity”.  Display that text at the top of the output.

Step 7:

Display the following output:

  •  
    • The area of the room (in square feet)
    • The amount of shade that the room gets
    • The number of BTUs per Hour that are needed to cool that room (rounded to the nearest whole number)

 

Write in python please. 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY