Student Name: Heather Elliott
Class/Section: 1202CMIS1026391
Professor Name: Nicolae Tapus
Assignment due date: 1/29/12
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.
Problem= We are trying to find out what the square footage of each room of a house and the square footage of the entire house. The input would include the length and width of each room and the formula to find the answer. The output would need to include the square footage of each room and the total square footage of the house. If all the code is properly executed, we will be able to input any sized room and quickly be able to find the square footage.
B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.
Main module
Declare EntireHouse As String
Declare LivingRoom, As Float
Declare Kitchen As Float
Declare BedRoom As Float
Declare BathRoom As Float
Write “Square Footage Program”
Write “This program computes the square footage of individual rooms and”
Write “the total area of houses”
Call Input Data module
Call Perform Calculations module
Call Output Results module
End Module
Input Data Module
Write “What is the length of the room?”
Input RoomLength
Write “What is the width of the room?”
Input RoomWidth
Perform Calculations module
Declare SquareFootage as Float
Set SquareFootage = RoomLength * RoomWidth
Set TotalSquareFootage = LivingRoom + Kitchen + BedRoom + BathRoom
Output Results module
Write “The total square footage of the Kitchen is: “ + Kitchen
Write