Preview

assignment lab 1

Good Essays
Open Document
Open Document
751 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
assignment lab 1
Description
This program will determine the usable area of a house. The rooms are rectangular in shape and maximum of four rooms are allowed to be calculated at once. It will use the area formula for a rectangle to find the usable area of each room and once the calculation are made for each room it will print out the total usable area of a house to the output screen.
Analysis
This program will calculate the usable area in square feet of a house with a maximum of four rooms that are rectangular in shape. The first step would be to get the required input because that is needed for the output. The first step is to get the each of the four rooms’ length and width. Then assign it to the appropriate variable. The area of a rectangle is the length multiply by the width. Then calculate the area of each room by multiplying the length by the width to find the number of square feet. Then we can find the total area by adding all the areas calculated together and that will result in the usable area of the house in square feet.
We will use sequential programming statements.
The variables that will be used to find the area square feet of each room are: area, length, width Totalarea.
Area will be used to find the usable square footage of each room.
Length and width will be the input that we need to know to get the area of each room.
Totalarea will be the sum of the area of each of the rooms that will be calculated.
Equations to the area are listed below.
Area of Room1 = length1 * width1
Area of Room2 = length2 * width2
Area of Room3 = length3 * width3
Area of Room4 = length4 * width4 totalArea = Room1+Room2+Room3+Room4
Print the totalArea
Design
Pseudo code
//This program will multiply the length and width of a maximum of four rooms in a house
//It will add the sum of the area of each room and assign it to the totalArea
//declare variables
Declare length1, width1, length2, width2, length3, width3, length4, width4, areaRoom1, areaRoom2, areaRoom3,

You May Also Find These Documents Helpful

  • Good Essays

    Mat 540 Assign 3

    • 1377 Words
    • 6 Pages

    Space available = 3 x 4 x 16 = 192 sq. feet = 192 x 12 x 12 =27648 sq. inches…

    • 1377 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3

    • 659 Words
    • 3 Pages

    Program description: I calculated the usable area in square feet of a house. Assume that the house has a maximum of four rooms, and that each room is rectangular. I wrote pseudo code statements to declare 4 Integers and labeled them homesqft, room1, room2, room3, and room4. Each room will have its length and width to calculate its area.…

    • 659 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Assignment 1

    • 407 Words
    • 2 Pages

    II. Analysis. The intent for this program is to calculate the square footage of a house with no more than four rooms that are rectangular in shape. In order to do this we will identify each room, input the length (l) and width (w) of each room, multiply the l x w of each room to get the square foot, and add the sum of each room to secure the total square footage of the house.…

    • 407 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Write a program that can be used by a small theater to sell tickets for performances. The theater’s auditorium has 15 rows of seats, with 20 seats in each row. The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the theater. Seats that are taken are represented by an * symbol and seats…

    • 703 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The length of this garden is 16 feet and the width is 3 feet. There are not other answers because 16 and 3 are the only numbers that can both be added to equal 19 and multiplied to equal 48. When solving this problem I wrote down the formulas for perimeter and area. We were given both the perimeter and area, 38 ft and 48 ft. I plugged this into the formula P=38= 2(l+w) then divided 38 by 2 and found that 19= l+w. Then I wrote the formula for area A=48=lxw. Then I found the two numbers that added to be 19 and multiplied to be 48.…

    • 108 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    nt1330 unit 1

    • 565 Words
    • 3 Pages

    A simple design you can consider is 1 floor with a single data closet serving 150 users. You need:…

    • 565 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    4 1

    • 331 Words
    • 2 Pages

    1. Use the values given in the above triangle and find the value of B, b, and c.…

    • 331 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Landscape Procurement Plan

    • 2681 Words
    • 11 Pages

    Following a major renovation and addition to the house, a redesign of the front yard is required. This redesign will encompass the front yard that is approximately 65 ft wide by 70 ft deep. The area is bounded on the south side by the house and a wooden fence, on the west side by a continuation of the wooden fence for approximately 40 feet. The north side is to the property line, and the east side is bound by the driveway. There is a sidewalk that comes away from the house to about 25 feet and turns to the driveway. The area enclosed by the driveway and sidewalk is approximately 350 ft2.…

    • 2681 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    provided for children. The layout in the the room needs enough space to move around and there…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Access

    • 1089 Words
    • 5 Pages

    Room is identified by Building ID and Room No and also has a Capacity. A room can be either a Lab or a Classroom. If it is a classroom, it has an additional attribute called Board Type.…

    • 1089 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CMIS102 Homework1

    • 703 Words
    • 3 Pages

    The task at hand is to design a program, using pseudocode, which will calculate the square feet of a house with no more than four rooms. It must be additionally assumed that each of these rooms is rectangular. The required output is the accurate calculation of the aggregate square footage of these rooms. The required input to arrive at this output is the length and width of each of the rooms, the multiplication of each individual room length and width, and the sum of the combined multiplication results. The required output will be obtained through proper declaration of each variable, which consists of multiple floating point values. For my analysis the length of a room will be represented as L plus a number to identify the room, such as L1. The width will similarly be represented as W1, and the area, or length times width, as A1. The resulting output, or sum of all A values, will be calculated. The following is a list of the required input and resulting output.…

    • 703 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    The room design that has the specifications that scored the highest in each category would be a small suite with speaker phone along with a…

    • 575 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Hotel in Ipoh

    • 2211 Words
    • 9 Pages

    Function space is reserved for the time indicated. Please advise us in advance should additional set up/ tear down time be required or any program revision be anticipated in order for an appropriate space to be made available. The hotel reserves the right to reassign function space whenever the need may arise.…

    • 2211 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Interior Design

    • 3035 Words
    • 13 Pages

    Planning is one of the most important steps in redesigning a room. It is vital to take in consideration the use of the room, the size of the room, what mood you want to set, and who is going to be using the space. The layout of a room refers to how the furniture is arranged. For example, a double bed should not be pushed up against the wall on the side (Stanley). Achieving balance is necessary in order for the room to be organized. When deciding how to balance your room, there are three main types to choose from.…

    • 3035 Words
    • 13 Pages
    Good Essays
  • Satisfactory Essays

    QUOTATION FOR PIPE BURGLARY PROOF FOR 3 BED ROOM FLAT S/NO ITEMS QTY RATE AMOUNT 1. 5ft x 4ft Window 7 6,500 ₦45,500 2. 4ft x 4ft Window 3 5,500 ₦16,500 3. 4ft x 3ft Window 1 5,000 ₦5,000 4.…

    • 60 Words
    • 2 Pages
    Satisfactory Essays

Related Topics