# Calculate the Usable Area in Square Feet of a House with Four Rooms

979 Words4 Pages
Homework-1: "Calculate the usable area in square feet of a house with four rooms" By Khaled Mamun CMIS 102: Introduction to Problem Solving and Algorithm Design Spring-2015, Section-6393 Dr. Babajide Olatunbosun Due Date: 25 Jan-2015 1. Problem / Overview: 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 in shape. 2. Program Description: This program will determine the total usable area of a house in square feet. Following rules apply: 1. The house has four rectangular rooms 2. Each room is different in size 3. Calculate the area of each room separately 4. Add areas of all four rooms to figure out the total usable area of the house 3. Analysis: 1. Square feet of rectangular area = (width X length) or (width * length) 2. This program will use the following input variables for each room: W: Width L: Length A: Area 3. Rectangular area for Room-1: a. Following command will be executed to find the value of the designated variable: A1 = L1 * W1 4. Rectangular area for Room-2: a. Following command will be executed to find the value of the designated variable: A2 = L2 * W2 5. Rectangular area for Room-3: a. Following command will be executed to find the value of the designated variable: A3 = L3 * W3 6. Rectangular area for Room-4: a. Following command will be executed to find the value of the designated variable: A4 = L4 * W4 7. Total usable area for House: a. Following command will be executed to find the value of the designated variable: Sum = A1 + A2 + A3 + A4 4. Design / Pseudocode: // Square Feet of a 4-Room House Program // This program computes the square feet of a 4-room house // Variables used: // Width of room 1, W1 // Length of room 1, L1 // Width of