Question: JAVA CODING PROJECT2 Project Name: Air Conditioning Project Filename: Project2_firstname_lastname(ex: Project2_jessica_smith) Chapter Review: Chapters 2 - 4 Students should complete all practice programs before starting
JAVA CODING PROJECT2
Project Name:
Air Conditioning
Project Filename:
Project2_firstname_lastname(ex: Project2_jessica_smith)
Chapter Review:
Chapters 2 - 4
Students should complete all practice programs before starting the project. Students should use only code reviewed in the chapters listed above and sample code provided by the instructor to complete this project. A point deduction will be given if other code, such as code copied from the Internet, is used in this project.
Only jGrasp should be used to code the project.
Project 2 is a continuation of Project 1. Modify the code from Project 1 in the following ways:
Step 1: The algorithm for determining the BTUs per Hour needed to cool a room has been slightly altered after a new study. Modify the code from Project 1 that determines the needed capacity of an air conditioning unit (Step 5 of Project 1). Use the table below to calculate the capacity:
| Room Size (Square Feet) | Amount of Shade | Air Conditioner Capacity (in BTUs per Hour) |
| Under 250 | Little | 7,000 |
| Under 250 | Moderate | 5,500 |
| Under 250 | Abundant | 5,000 |
| From 250 to 500 | Little | 12,000 |
| From 250 to 500 | Moderate | 10,000 |
| From 250 to 500 | Abundant | 8,000 |
| Over 500 to Under 1000 | Little | 21,000 |
| Over 500 to Under 1000 | Moderate | 17,500 |
| Over 500 to Under 1000 | Abundant | 15,000 |
| 1000 or Greater | Little | 28,000 |
| 1000 or Greater | Moderate | 24,000 |
| 1000 or Greater | Abundant | 20,000 |
Step 2: Modify the code from Project 1 to read and process information from a file named Rooms.txt. There is a sample Rooms.txt file attached to this assignment. Follow the "How to Download Files from Blackboard" link above these instructions for help downloading the file. Do not modify the file in any way.
The text file contains profiles about a set of rooms for a house. Each room is going to be equipped with a separate air conditioning unit. The text file contains information in the following order:
Room name
Room length
Room width
Amount of shade (1 for Little, 2 for Moderate, or 3 for Abundant)
Display the title at the top of the output, just like in Project 1.
After displaying the title, the program should process all of the information in the file and display the following output for each room in the file:
The name of the room
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)
At the end of the output, the program should display the name of the room that requires the highest BTUs per Hour and the name of the room that requires the lowest BTUs per Hour. If there is more than 1 room that requires the lowest or highest BTUs per Hour, you need only print the name of one of the rooms. For example, in the sample output below, the Guest Bedroom and Master Bathroom both required 5000 BTUs per Hour, which is the lowest amount required. Your program can output either the Guest Bedroom or Master Bathroom in this case.
Sample Input and Output
Air Conditioning Window Unit Cooling Capacity
Room Name: Guest Bedroom
Room Area (in square feet): 155.0
Amount of Shade: Abundant
BTUs Per Hour needed: 5,000
Room Name: Master Bedroom
Room Area (in square feet): 260.0
Amount of Shade: Moderate
BTUs Per Hour needed: 10,000
Room Name: Living Room
Room Area (in square feet): 750.0
Amount of Shade: Little
BTUs Per Hour needed: 21,000
Room Name: Grand Dining Room
Room Area (in square feet): 2200.0
Amount of Shade: Moderate
BTUs Per Hour needed: 24,000
Room Name: Master Bathroom
Room Area (in square feet): 85.0
Amount of Shade: Abundant
BTUs Per Hour needed: 5,000
Room Name: Guest Bathroom
Room Area (in square feet): 72.0
Amount of Shade: Little
BTUs Per Hour needed: 7,000
Room that requires highest BTUs per Hour: Grand Dining Room
Room that requires lowest BTUs per Hour: Guest Bedroom
-------------------------------------------------------------------------------------------
(Rooms.txt file)
Guest Bedroom 10 15.5 3
Master Bedroom 16 16.25 2
Living Room 30 25 1
Grand Dining Room 40 55 2
Master Bathroom 10 8.5 3
Guest Bathroom 8 9 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
