CMIS102 Homework Assignment 1 (Worth 13% of your grade)
Student Name: Angelica Hines
Class/Section: CMIS 102.1202.7983
Professor Name: Ronald McFarland
Assignment due date: 04/01/2012
Problem definition: 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.
A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section.
In this program the overall goal is to obtain the usable area in square feet in a house. The results or overall goal would be considered the required output. To obtain the required output we would need the necessary input. The necessary information regarding the house is that it contains a maximum of four rooms that are rectangular in shape. I will obtain the required output from the given input by multiplying length x width to find the number of square feet in each rectangular room. Once the combined square footage of each room is determined this will give me the amount of usable living space.
We would need to know each room length and width, then calculate each rooms area and then find the sum of all four rooms.
Area of Room 1= Length1 x Width1
Area of Room 2= Length2 x Width2
Area of Room 3= Length3 x Width3
Area of Room 4= Length4 x Width4
Area of Room 1 + Room 2 + Room 3 =Room 4 = Total Square footage
B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.
Useable square footage of a house
Rooms- Total number of Rooms = 4
Area-Area=L x W of each room
Variables= Length, width, area
Length x Width Room 1 = Area
Length x Width Room 2 = Area
Length x Width Room 3 = Area
Length x Width Room 4 =Area