Calculation of Usable Area in Square Feet of House – Homework

Table of contents

CMIS102 Homework Assignment 1 (Worth 13% of your grade).

Problem definition: 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. This program will compute the area of a house that has four rectangular rooms. The output is the value of the total area (total_area) of the house and is to be calculated by area/length/width input (A1, A2, A3, A4, L1, L2, L3, L4, W1, W2, W3, and W4) variables declared as float variables. The program will utilize the standard mathematical formula of obtaining the area of a rectangle:

A = L*W. As well, the formula will be coded in the program as

Area=length*width (A=L*W) respectively for each room.

L1 = length of the first room, as float W1 = width of the first room,

as float A1=L1*W1 L2 = length of the first room, as float W2 = width of the first room,

as float A2=L2*W2 L3 = length of the first room,

as float W3 = width of the first room, as float A3=L3*W3 L4 = length of the first room,

as float W4 = width of the first room,

as float A4=L4*W4 B.

Program Design – Following the directions in the assignment, clearly write up your problem design in this section, and comment on your pseudocode. Raptor software will be used in designing and testing this program. The three fundamental tasks of creating a program will be incorporated:

  1.  Input Data: Use of Raptor to add Input and Assignment symbols will allow users to input data when running the program. The Main and Input_Data modules will heavily use the Input and Assignment symbols in Raptor. In the Input_Data_module, variables will be assigned and declared. As well, the Main module will execute the entire program by calling the completed sub-charts.
  2.  Calculate formula: Use formulas to attain total_area of the house by calculating the area of each of the four rooms. Total_area = A1 + A2 + A3 + A4 to get the sums of all areas we must calculate the formula for each room A1 = L1*W1 A2 = L2*W2 A3 = L3*W3 A4 = L4*W4
  3.  Obtain Output: The program will display the result of total_area from process and calculation in the previous two steps.

Comment: “This program computes the total area of a four-bedroom house in square footage.

Call Input_Data_module Call Calculations_module Call Output_Data_module End Input_Data_Module:

Write:

  • “Length of the first room” (L1)
  • Write “Width of the first room” (W1)
  • Write “Length of the second room” (L2)
  • Write “Width of the second room” (W2)
  • Write “Length of the third room” (L3)
  • Write “Width of the third room” (W3)
  • Write “Length of the fourth room” (L4)
  • Write “Width of the fourth room” (W4)

Call Calculations_module End Perform Calculations module: Declare A1, A2, A3, and A4;

as float

Set A1 = L1*W1 Set A2 = L2*W2 Set A3 = L3*W3 Set A4 = L4*W4

Set total_area = (A1+A2+A3+A4)

End Output Data module: Write “The total area of the house is:” + total_area End C. Program Comments and Test Data – Following the directions in the assignment, including your test data and expected results in this section. Table 1. Include your test data table here

TEST RUN OF DATA INPUT INTO PROGRAM

Input: Length & Width (in feet)
Expected Output: Footage of house (in feet)

Test Run 1.

Area of Rectangle A=L*W
Room 1 L=10, W=5 50=10*5
Room 2 L=10, W=5 50=10*5
Room 3 L=10, W=5 50=10*5
Room 4 L=10, W=5 50=10*5
Total Area=A1+A2+A3+A4 200 sq ft.

Test Run 2

Area of Rectangle A=L*W
Room 1 L=12, W=6 72=12*6
Room 2 L=12, W=6 72=12*6
Room 3 L=12, W=6 72=12*6
Room 4 L=12, W=6 72=12*6
Total Area=A1+A2+A3+A4 288 sq ft.

Test Run 3

Area of Rectangle A=L*W
Room 1 L=20, W=10 200=20*10
Room 2 L=20, W=10 200=20*10
Room 3 L=20, W=10 200=20*10
Room 4 L=20, W=10 200=20*10
Total Area=A1+A2+A3+A4 800 sq ft.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyStudyWriters
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business and administrative studies
Excellent work ,always done early
Customer 452773, February 21st, 2023
Criminal Justice
This has been the greatest help while I am recovering from an illness. Thank your team so much.
Customer 452671, May 2nd, 2021
Business and administrative studies
looks good thank you
Customer 452773, March 3rd, 2023
Business and administrative studies
excellent paper
Customer 452773, March 3rd, 2023
Human Resources Management (HRM)
excellent, great job
Customer 452773, June 19th, 2023
10th grade English
very good
Customer 452773, March 26th, 2023
DATA565
The support team was late responding , my paper was late because the support team didn't respond in a timely manner. The writer of the paper finally got it right but seems there was a problem getting the revisioin to me.
Customer 452773, April 7th, 2024
Business and administrative studies
Thank you for your hard work and effort. Made a 96 out of 125 points Lacked information from the rubic
Customer 452773, October 27th, 2023
Business and administrative studies
Thank you for your hard work
Customer 452773, October 19th, 2023
Leadership Studies
excellent job
Customer 452773, August 3rd, 2023
Psychology
Thank you!
Customer 452545, February 6th, 2021
History
Don't really see any of sources I provided, but elsewise its great, thank you!
Customer 452697, May 8th, 2021
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Close

Sometimes it is hard to do all the work on your own

Let us help you get a good grade on your paper. Get professional help and free up your time for more important courses. Let us handle your;

  • Dissertations and Thesis
  • Essays
  • All Assignments

  • Research papers
  • Terms Papers
  • Online Classes
Live ChatWhatsApp