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.

1108 Words5 Pages
CMIS102 Homework Assignment 1 (Worth 13%) Design a program to perform the following task: 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. I. Problem Analysis A.) To find the usable area in square feet of a house, what are the necessary Input needed to solve the problem? -Must declare each room or else the program won’t know which measurements belong to what room for example RoomWidth1 and RoomLength1 will correspond to the length and width of Room One -Must use the command “input” which allows the user to input the values the program needs to calculate its function -Must use the “write” command to inform the user what value they need to use for example Write “What is the length of room one in feet?” which ask the user the question “What is the length of room one in feet?” B.) To find the usable area in square feet of a house, what are the necessary Outputs needed to solve the problem? -Must include the “write” function to give the information to the user about the data collected and computed. for example Write “The total usable square footage in the house is: “ + Squarefeet -Use “+ Sqaurefeet” to use the value of the data -What information I want to display to the user such as the areas of each room and the total usable area C.) To find the usable area in square feet of a house, what are the necessary processes needed to solve the problem? -In order to solve this problem I must know how to calculate the area of a rectangle, which is length times with. -To find the total area of the house I must know to add all the areas of each room to get the total usable area. -Must use the proper terms to describe measurement from square feet to square footage -Must use “Set” to allow the program to set equations for example Set Room1 = Widthfeet1 * Lengthfeet1 II.

More about 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.

Open Document