A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section.
For this problem, I will calculate the square footage of a 4-room house using the formula Length * Width to obtain Area.
Room 1: Length*Width
Room 2: Length*Width
Room 3: Length*Width
Room 4: Length*Width
Area = Square Footage (Room 1 + Room 2 + Room 3 + Room 4 = Square Footage)
B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.
Using pseudocode, I will input measurements to obtain square footage of 4-room house. Input: Rooms, measurement Calculations: length * width Output Results: Square footage Input – Enter Room Length multiplied by Width
Perform calculations
Room 1: length*width
Room 2: length*width
Room 3: length*width
Room 4: length*width
Output – Show Room Measurements
Room 1: Area
Room 2: Area
Room 3: Area
Room 4: Area
Input: Find Combined Area
Room 1 + Room 2 + Room 3 + Room 4 = Area
Output: Show square footage
C. Program Comments and Test Data – Following the directions in the assignment, include your test data and expected results in this section. Declare Variables Declare lengthfeet as float Declare widthfeet as float Declare lengthfeet as float Declare widthfeet as float Declare lengthfeet as float Declare widthfeet as float Declare lengthfeet as float Declare widthfeet as float
Value What is the length times width in feet? Input length*width Input length*width Input length*width Input length*width
Perform Calculations
Set: length * width = Area Set: length * width = Area Set: