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

Calculate the usable area in square feet of house. Assume that the house has a m

ID: 3552972 • Letter: C

Question

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.

Before attempting this exercise, be sure you have completed all of chapter 2 and course module readings, participated in the weekly conferences, and thoroughly understand the examples throughout the chapter. There are 3 main components of your submission including the problem analysis, program design and documentation, and sample test data.

1. Using a similar approach as example 2.3 (textbook page 75):

Explanation / Answer

Design Strategy : Area of Room1 = length1 * breadth1 Area of Room2 = length2 * breadth2 Area of Room3 = length3 * breadth3 Area of Room4 = length4 * breadth4 Total Number of Square Foots = Area of Room1 + Area of Room2 + Area of Room3 + Area of Room4 ---------------------------------------------------------------------------------------------------- Pseudocode : Start Declare the variables i,j as integers length[4], breadth[4], area[4] as double array sum as double Display "Enter The Rooms Length & Breadth for each room :" For i = 1 to 4 do Accept length[i], breadth[i] Next [i] Display "Finding Area and Total Number of Square Foots" Set sum = 0 For i = 1 to 4 do Area[i] = length[i] * breadth[i] Sum = sum + Area[i] Next [i] Display "Total Number of Square Foots", sum end ----------------------------------------------------------------------------------------------------- Test data and Output : Enter The Rooms Length & Breadth for each room : Room 1 Length :50 Room 1 Breadth :20 Room 2 Length :20 Room 2 Breadth :40 Room 3 Length :50 Room 3 Breadth :60 Room 4 Length :40 Room 4 Breadth :50 Total Number of Square Foots : 6800

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