# Essay on Cmis 102 Assignment 1

806 Words4 Pages
CMIS102 Homework Assignment 1 Student Name: Ryan J. Rath Class/Section: 6383 Professor Name: Anthony Baird Assignment due date: 1/27/2013 1. Using a similar approach as example 2.3 (textbook page 75): “Finding the Sale Price of Items in a Department Store”, provide your analysis for the following problem statement: You need to write a program that will calculate the number of square feet (living space) in a 4-room house. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. Be sure to include what is the required output? What is the necessary input and how you will obtain the required output from the given input? Also, include your variable names and…show more content…
Variables * Length of Room 1 = length1 (Float) - Length of Room 4 = length4 (Float) * Width of Room 1 = width1 (Float) - Width of Room 4 = width4 (Float) * Length of Room 2 = length2 (Float) * Width of Room 2 = width2 (Float) * Length of Room 3 = length3 (Float) * Width of Room3 = width3 (Float) Additional Variables Area = length*width Area1 = length1 * width1 (float variable) Area2 = length2 * width2 (float variable) Area3 = length3 * width3 (float variable) Area4 = length4 * width4 (float variable) Area1 + Area2 + Area3 + Area4=totalArea (float variable) Program Module Components Fundamental Tasks * Input the data. * Input variables length1, width1, length2, width2, length3, width3, length4, width4 * Perform Calculations * totalArea=area1+area2+area3+area4 where: * area1=length1*width1 * area2=length2*width2 * area3=length3*width3 * area4=length4*width4 * Output Results * Display the “totalArea” of the House (in square feet) Program Design Declare the variables Declare totalArea As Float Declare length1 As Float Declare width1 As Float Declare length2 As Float Declare width2 As Float Declare length3 As Float Declare width3 As Float Declare length4 As Float Declare width4 As Float Write “This Program Will Calculate The Area In Square Feet Of A Four Room House” Call Input Data module