CMIS102 Homework Assignment 1 (Worth 13% of your grade)
Assignment due date:
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.
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
Input Data Module
Write “What is the length of the room?”
Write “What is the width of the room?”
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...
Please join StudyMode to read the full document