Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this homework, you will design a program to perform the following task: Calcu

ID: 667363 • Letter: I

Question

In this homework, you will design a program to perform the following task:

Calculate the usable area in square feet of house. Assume that the house has a maximum of four rooms, and that each room is rectangular.

There are 4 components of your submission including:

Program Description- A detailed, clear description of the program you are building.

Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed.

Test plan - Prepare at least 3 sets of input data (Test data) along with their expected output for testing your program. Your test data can be presented in the form of a table as follows (note: feel free to adapt to your design)

Pseudocode- Provide pseudocode of your overall design that fulfills the requirements of the project

All of these components can be placed in word document.

HERE IS MY WORK:

Program Description:

The following study was designed to measure a random age of retirement across three (3) counties in the Greater Los Angeles Basin. These counties were chosen as they are the most populous. This is a cross-sectional, non-longitudinal, representation of the differentiation of retirement age across the Southern California area.

Analysis:

            The ostensible purpose of this program is to create test data in the pursuit of writing commensurate pseudocode thereof. As a result, the information—though predictable by deign of eyesight alone at the below Data Table (Test Data)—is inherently functional to demonstrate the necessary components for said Table. Moreover, demonstrating the ability to transfer this data into psuedocode from the table displays a tactility with writing pseudocode—the focus of Week 2’s learning.

Data Table (Test Data):

Test Case #1A- Retirement Study

Input

Expected Output

1

Albert A: Age 51; Co: Orange

Albert B: Age 61; Co: LA

Albert C: Age 74; Co: Riverside

Average Age at Retirement:

62

Youngest County: Orange

2

John A: Age 48; Co: Orange

John B: Age 65; Co: LA

John C: Age 68; Co: Riverside

Average Age at Retirement:

60.33

Youngest County: Orange

3

                 

Robert A: Age 62; Co: Orange

Robert B: Age 69; Co: LA

Robert C: Age 67; Co: Riverside

Average Age at Retirement:

66

Youngest County: Orange

ALL I NEED IS THE PSEUDOCODE, PART 4. EVERYTHING ELSE SHOULD BE FINE!!!

Test Case #1A- Retirement Study

Input

Expected Output

1

Albert A: Age 51; Co: Orange

Albert B: Age 61; Co: LA

Albert C: Age 74; Co: Riverside

Average Age at Retirement:

62

Youngest County: Orange

2

John A: Age 48; Co: Orange

John B: Age 65; Co: LA

John C: Age 68; Co: Riverside

Average Age at Retirement:

60.33

Youngest County: Orange

3

                 

Robert A: Age 62; Co: Orange

Robert B: Age 69; Co: LA

Robert C: Age 67; Co: Riverside

Average Age at Retirement:

66

Youngest County: Orange

Explanation / Answer

Program Description -:

The following study was designed to measure the usable area in the house. Usable area consists of the 3 parts - Floors, Walls and Roofs. The program we are building is rather generic. It takes number of rooms in the house as input (say,n=4). Then it takes the length, breadth and height of each room as part of iteration. Further to calculate the total unused or usable area for floors walls and roofs, we take take input of used area in each component in sq ft. The total is calculated by summing each component of each room.

Analysis -:

The purpose of the above approach is to conclude that the usable area in the room not only contains the floor,but also roof and wall. Say, you have 2 spare paintings and you want to put them on your wall which again contains 3 painting. Therefore you first have to calculate unused area on your wall, and therefore the area required by your paintings. Similarly you wan to redecorate your roof, the same thought process is appliead in it also.

The approach from the mathematical perspective will ask the the length, breadth and height of your rooms. Then it will calculate the area of floor, wall and roof.For e.g.,

Lets say, for the first room,

length = 10 ft , breadth = 8 ft, and height = 12 ft.

So,

the area of the floor = area of roof = length * breadth = 10 * 8 = 80 sq ft

area of walls = 2(length * height) + 2(breadth*height) = 2(10*12) +2(8*12) = 432 sq ft.

Now, used floor area = 40sq ft

            used wall area = 232 sq ft

            used roof area = 25 sq ft

So total unused area in the room = (80-40) +(432-232) + (80-25) = 295 sq ft.

Test Plan

Test Cases

Input

Expected Output

1

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

Total unused = 295 sq ft

Total wall unused = 200sq ft

Total roof unused = 55 sq ft

Total floor unused = 40 sq ft

2

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

2nd room => l=8,b=10,h =12

Used wall = 232

Used roof = 15

Used floor = 50

Total unused = 590 sq ft

Total wall unused = 400sq ft

Total roof unused = 120 sq ft

Total floor unused = 70 sq ft

3

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

2nd room => l=8,b=10,h =12

Used wall = 232

Used roof = 15

Used floor = 50

3rd room => l=10,b=10,h =15

Used wall = 300

Used roof = 50

Used floor = 50

Total unused = 990 sq ft

Total wall unused = 700sq ft

Total roof unused = 170 sq ft

Total floor unused = 120 sq ft

               

PSEUDOCODE

Say, n = 4

Test Cases

Input

Expected Output

1

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

Total unused = 295 sq ft

Total wall unused = 200sq ft

Total roof unused = 55 sq ft

Total floor unused = 40 sq ft

2

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

2nd room => l=8,b=10,h =12

Used wall = 232

Used roof = 15

Used floor = 50

Total unused = 590 sq ft

Total wall unused = 400sq ft

Total roof unused = 120 sq ft

Total floor unused = 70 sq ft

3

Rooms(n) = 1

1st room => l=10,b=8,h =12

Used wall = 232

Used roof = 25

Used floor = 40

2nd room => l=8,b=10,h =12

Used wall = 232

Used roof = 15

Used floor = 50

3rd room => l=10,b=10,h =15

Used wall = 300

Used roof = 50

Used floor = 50

Total unused = 990 sq ft

Total wall unused = 700sq ft

Total roof unused = 170 sq ft

Total floor unused = 120 sq ft

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote