Cmis 102 Assignment 1

Only available on StudyMode
  • Topic: Area, Input, Height
  • Pages : 4 (817 words )
  • Download(s) : 508
  • Published : February 4, 2013
Open Document
Text Preview
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 definitions. Be sure to describe the necessary formulas and sample calculations that might be needed.

In this Program, the primary goal is to calculate the square footage of a four room house. In order to accomplish that, we need to know each room’s length and width, then calculate the area of each room and lastly find the sum of the area of each of the four rooms. * Area of Room1=length1*width1

* Area of Room2=length2*width2
* Area of Room3=length3*width3
* Area of Room4=length4*width4
Total Number of Square Feet = Area of Room1+ Area of Room2+ Area of Room3+ Area of Room4 2.       Using a similar approach as the example provided in section 2.2(textbook page 78) for “The Sale Price Program continued”, provide your program design for the program you analyzed for calculating the number of square feet in a house. Be sure to describe the fundamental tasks needed to solve the problem so you can use a modular design. Provide pseudocode of your overall design that includes the Main module and the order of the module calls (see page 82 for an example). Finally, list all of your pseudocode for each module (See example 2.6 on page 83 as an example). For this problem, we need to output the value of...
tracking img