Free Essay

Area of Usable Room

In: Science

Submitted By bighawke5
Words 276
Pages 2
Program that will calculate the number of square feet (living space) in a 4-room house.
Problem Analysis

In this Program , the aim is to calculate the square feet of a 4 –room house
So we need to know each room’s length and breadth, then calculate each room’s area and the find the sum of those
Area of Room1=length1*breadth1
Area of Room2=length2*breadth2
Area of Room3=length3*breadth3
Area of Room4=length4*breadth4
Total Number of Square Foots = Area of Room1+ Area of Room2+ Area of Room3+ Area of Room4

Program Design
Declare the variables i,j as interger length[4], breadth[4],area[4] as double array sum as double
Display “Enter the Rooms length and Breadth”
For i= 1 to 4 do Accept length[i], breadth[i]
Next i
Display “Finding Area and total number of square foots”
Set sum=0
For i= 1 to 4 do Area[i]= length[i]* breadth[i] Sum=sum+Area[i]
Next i
Display “Total number of square foots”, sum

Program Comments and Test Data
Test data and Output

Example application test data:
Input: Room length and width (in feet) Expected output: Total square footage of house (in square feet)
Room1: length=10, width=14;
Room 2: length=9, width=10;
Room 3: length=12, width=12;
Room 4: length=11, width=9 473
Room1: length=20, width=10;
Room 2: length=15, width=10;
Room 3: length=20, width=10;
Room 4: length=30, width=10 850
Room1: length=20, width=15;
Room 2: length=10, width=5;
Room 3: length=30, width=15;
Room 4: length=12, width=15 980…...

Similar Documents

Free Essay

The Area

...Area is a quantity that expresses the extent of a two-dimensional surface or shape, or planar lamina, in the plane. Area can be understood as the amount of material with a given thickness that would be necessary to fashion a model of the shape, or the amount of paint necessary to cover the surface with a single coat.[1] It is the two-dimensional analog of the length of a curve (a one-dimensional concept) or the volume of a solid (a three-dimensional concept). The area of a shape can be measured by comparing the shape to squares of a fixed size.[2] In the International System of Units (SI), the standard unit of area is the square metre (written as m2), which is the area of a square whose sides are one metre long.[3] A shape with an area of three square metres would have the same area as three such squares. In mathematics, the unit square is defined to have area one, and the area of any other shape or surface is a dimensionless real number. There are several well-known formulas for the areas of simple shapes such as triangles, rectangles, and circles. Using these formulas, the area of any polygon can be found by dividing the polygon into triangles.[4] For shapes with curved boundary, calculus is usually required to compute the area. Indeed, the problem of determining the area of plane figures was a major motivation for the historical development of calculus.[5] For a solid shape such as a sphere, cone, or cylinder, the area of its boundary surface is called the surface...

Words: 422 - Pages: 2

Free Essay

Calculating Sq Footage of a Room

...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. |Input |Processing |Output |roomWidth |Read roomWidth |totalArea |roomLength |Read roomLength | |Calculate area | |Calculate totalArea | |Display totalArea B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. Begin Declare roomWidth, roomLength, area, totalArea = 0 Write “Please enter the width and length of room 1: “ Input roomWidth Input roomLength Set area = roomWidth * roomLength Set totalArea = totalArea + area Write “Please enter the width and length of room 2 (enter 0 if......

Words: 331 - Pages: 2

Free Essay

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.

...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 1. What is the usable living area of 4 room house (output) 2. What is the length of room 1 (length1) - input 3. What is the width of room 1 (width2) – input 4. What is the sq footage of room1 (sqft1)– float variable 5. What is the length of room 2 (length2) - input 6. What is the width of room 2(width2) – input 7. What is the sq footage of room2(sqft2) – float variable 8. What is the length of room 3(length3) – input 9. What is the width of room 3(width3) - input 10. What is the sq footage of room3(sqft3) – float variable 11. What is the length of room 4 (length4)- input 12. What is the width of room 4 (width4)– input 13. What is the sq footage of room4(sqft4) – float variable 14. Add each sq footage together for total living area – float variable Formulas – sq footage=length*Width Total living area=sq footage1+sqfootage2+sqfootage3+sqfootage4 B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. Input date module Write “What is length of room 1” Input length1 Write “What is the width of room 1” Input width1 Write “What is the length of room 2” Input......

Words: 478 - Pages: 2

Free Essay


...My Room As I sleepily stumble into my house at midnight there is only one place I want to be: my room. As I walk in I try to avoid the clothes thrown all over like landmines in a battlefield. My room is the closest resemblance to me, someone who loves sports and music. I flop onto my bed staring up at the ceiling light covered in baseballs and basketballs. In one of the corners of the ceiling there is an ugly yellow stain the size of a football from my once leaky roof. My room has changed little since I was younger. Everywhere I look I see something to do with sports, mostly the Red Sox. Two red pin strips wrap around my white walls. As I sit on my bed tucked away in the right corner, I catch myself staring at a huge picture of Fenway Park hanging above my desk. To the right the infamous picture of Carlton Fisk waving his homerun right hangs over my closet. Dangling from a hanger on my closet is a retro New York Mets jersey signed by Mike Piazza that waits to be encased. Right next to my bed an oversized Red Sox logo sticks to the wall. The logo is almost bigger than the wall itself. A black and red “jet life hangs” over my head, probably the only thing that doesn’t have to do with sports in my room. My desk is littered with nickels, dimes, and pennies that I have tossed on it. There are clothes all over my desk; some folded others rolled up in balls that have been sitting there for days. The top of the desk is covered in filthy black hats with faded red CW logos...

Words: 526 - Pages: 3

Free Essay

My Room

...Tyto Rowell Professor Gray ENG-1000C–598 10 February 2014 My Room Draft 1 If someone were to look through your bedroom, what do you hope your possessions would convey about you? A typical teen's room? In some respects, yes, but in many ways, my room has become an extension of my personality, interests and values. Upon entering, one would probably notice the lack of any music group, scantily clad female model, or indeed, any adornment at all on my walls. I prefer the unsoiled look of clean walls, which provide a sense of calm. However, my room is far from military precision and order; my bed lies unmade and yesterday's wardrobe gathers dust on the floor. The visitor may consider my room tidy, but not inflexible. While touring my room, one would surely stop to look through the room's workspace, my desk and computer. The desktop is fairly organized, consisting of a pencil holder, desk calendar, and assorted textbooks. The calendar is full of important dates--tests, deadlines, and of course, the rare days off from school. Academics are one of my highest priorities, but would be useless without occasional relaxation. Above my desk hangs a bulletin board. Similar to the calendar, it holds important pieces of information, as well as a few personal items. A postcard, a present from my grandfather, would likely catch one's eye. The postcard is from my homeland, and includes a famous quote by Mahatma Gandhi. It reminds me of the country I was born in, and the ties I have to my......

Words: 712 - Pages: 3

Free Essay

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.

...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: What is the required output? Total square footage of a house (in square feet) What is the necessary input? Room 1, 2, 3, and 4 length and width. How will we obtain output from input? Each room length and width input multiplied. Next all four rooms total add together for output. B. Program Design: 1. Input data: Input the variables Rm1L, Rm1W, Rm2L, Rm2W, Rm3L, Rm3W, Rm4L, Rm4W 2. Perform calculations: where… Rm1sqft = Rm1L * Rm1W, Rm2sqft = Rm2L * Rm2W, Rm3sqft = Rm3L * Rm3W, Rm4sqft = Rm4L * Rm4W, where… Housesqft = Rm1sqft + Rm2sqft + Rm3sqft + Rm4sqft 3. Output results: Display the total square feet (Housesqft) of the house // House Measurement Computation // Programmer: Neal Fowler Main module // Declare Variables Declare Rm1L Declare Rm1W Declare Rm2L Declare Rm2W Declare Rm3L Declare Rm3W Declare Rm4L Declare Rm4W Declare Rm1sqft Declare Rm2sqft Declare Rm3sqft Declare Rm4sqft Declare Housesqft Write “Home Measurement Program” Write “This program computes the total” Write “square feet (living space) of a house.” Call Input Data module Call Perform Calculations module Call Output Results module End Program Input Data module // Get the measurements of each room Write “What is room 1 length?” Input Rm1L Write “What is room 1 width?” Input Rm1W Write “What is room 2......

Words: 472 - Pages: 2

Free Essay

Usable Area in Square Feet

...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. Description: The program first accepts the number of rooms. Then for each room the dimensions are taking (Length and Width). With all the dimensions recorded for each room, Area is calculated as Length by Width, using the formula for area calculation of a rectangle (Length*Width). The final unused area is the sum of all the areas from the number of room specified. Analysis: The number of rooms will be held in a variable N, Length and Width for each room will be held in LN and WN respectively. With N representing the room number. AreaTotal and AreaTemp are used to hold the final area values and the temporal values of area for each room respectively. To keep track of which room’s dimension or area is being dealt with, the variable Count will be used. Variables to use: 1. N : Number of Rooms 2. Count : Count for loop 3. AreaTemp: Temporal area 4. AreaTotal : Total area 5. LN : Length of Room number N 6. WN: Width of Room number N B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. Pseudo Code: 1. Enter the number of rooms : N 2. Set Count = 0 3. If......

Words: 497 - Pages: 2

Premium Essay

Rooms Division

...Rooms Division The rooms division is one of the key departments within a hotel, involving the sales and the delivery of services and facilities for the guests. According to Baker, Huyton and Bradley (2000), this department is the most important as rooms sales are the main source of revenue for the business. This department is usually divided into two departments: front office and housekeeping, however Dix and Baird (1998), explain that larger hotels will have many more smaller departments including advance reservations, reception, cashier and so on. The role of the front office derives from the guest cycle, which according to Baker, Huyton and Bradley (2000), refers to the stages of a typical hotel stay. These stages include pre-arrival, arrival, occupancy, departure. During the pre-arrival stage, the role of the front office involves making a reservation for the guest, which could be via telephone, online etc. During the arrival phase, the front office will complete the registration, allocate rooms and issue their keys. During the guest’s stay, the front office is responsible for responding to the varying needs of each particular guest and could include handling telephone calls, transportation, mail and information, currency exchanges, safe deposits and maintain guest’s accounts. During the departure phase of the guest cycle, the front office will be responsible for handling check-out, bill settlement, baggage handling and transportation, which will once again depend......

Words: 489 - Pages: 2

Free Essay

Create a Program to Calculate Total Usable Area of a Four Bedroom House

...calculate the usable area in square feet of a four bedroom house. Analysis: In building this program, I need it to efficiently calculate the total usable area of an entire four bedroom house. In order to do this, the program first needs to calculate the dimensions of each room. Once it has found the total area for each room, the program can then add the four room dimensions to arrive at the total usable area for the entire house. The calculations should look like this: Total usable area = (l*w) + (l*w) + (l*w) + (l*w) Rm. 1 Rm. 2 Rm. 3 Rm. 4 When I first started planning this program, I gave the room variables the names living_room, kitchen, bedroom1, and bedroom2. However, it became confusing trying to match these variables with the names of the dimension variables. Instead, I gave each room a number and the dimension variables have a corresponding number (for example, room1, length1, width1 and room2, length2, width2). Variables: * room1: total usable area of room number one * length1: length of room number one * width1: width of room number one * room2: total usable area of room number two * length2: length of room number two * width2: width of room number two * room3: total usable area of room number three * length3: length of room number three * width3: width of room number three * room4: total usable area of room number four * length4: length of room number four * width4: width of room......

Words: 905 - Pages: 4

Free Essay

Room Assignment

...It is the world of hospitality operation and management including service about how to achieve business excellence. Room division operation includes different departments related with care, provision and selling of the rooms which covers housekeeping, front office, reception, front house, linen and laundry, telephone operator, doorman, mail and messages, concierge, valet and butler (John and Brown, 2003). As we know accommodation includes type of services which helps for staying that consists of hotels, motels, clubs, cruise liners and hospitals with different range of facilities. It provides bedroom, suite, apartment, cabin and hospital wards for guest to enjoy and entertain. The range of accommodation service includes the different of housekeeping and maintenance. Different organisation does have different way and style and accommodation and service to fulfil guest requirement. Reception is the place within hospitality operation management which makes first interaction with guest. The roles and responsibilities of staff regarding housekeeping includes planning, providing, serving, cleaning rooms, public areas, supplying anything required, managing laundry and day cleaning, providing comfort and recreation, preparing documentation and record keeping, manage floral management, ensure health, safety and security, make everything looks good with nice furnishing and refurbishment to ensure accommodation environment encouraging occupancy by housekeeper, wardens, matron and......

Words: 1656 - Pages: 7

Premium Essay

Room Division

... Assignment front sheet |Qualification |Unit number and title | |Pearson BTEC HND Diploma in Hospitality Management |Unit 6 Rooms Division Operations Management | |Student name |Assessor name | | | | |Date issued |Completion date |Submitted on | |05th January 2015 |08th March 2015 | | | | | |Assignment title |Rooms Division Operations Management | |Learning Outcome |Assessment |In this assessment you will have the opportunity to present evidence |Task no. | | | ...

Words: 2141 - Pages: 9

Premium Essay

Area Calculator in C

...properly. The purpose of the script is to calculate the area of 4 individual rooms and ultimately get an output with the over all usable area. The thought process behind my code was first under the assumption that all four rooms in the house were either a square or rectangular in shape. With that in mind, and also the fact that I have never written anything other than Hello, World!, I researched multiple ways to create an “area of a rectangle or square” C language algorithm and experimented with what worked best for me. Once I figured out a little more about how the syntax worked, I then added the necessary variables in order to allow for the calculations of multiple rooms. Once I established the formulas to create the correct output, I then added the variable for the overall total and introduced the proper equation needed to give said total. Although I will also have a table below containing the variable data, making it more organized, I must note that with the IDEONE compiler I had to hit return after every number input representing each dimension necessary to complete the syntax and get the proper outputs. I will also provide an example of the format used for the inputs used in order to get the proper outcome below the table. |Test Case # |Input Variables |Expected Output | |1 |Room 1; L = 10 , W = 10 ......

Words: 595 - Pages: 3

Premium Essay

Room Division

...| | Example of hotel star ratings For this report, as a Rooms Division Manager who previously worked in Rizqun International Hotel, a 5 star hotel in Brunei Darussalam, I am now working in The Brunei Hotel, a 3 star hotel and are required to restructure and analyse the differences of the housekeeping department and front office department between a 5 star hotel and a 3 star hotel. Housekeeping Department A housekeeping department in a 5 star hotel has more responsibilities than a 3 star hotel, because a 5 star hotel’s housekeeping department require a lot of staff as there are more rooms to be cleaned. In Rizqun International Hotel, there are more than a thousand rooms that need to be cleaned. In Brunei Hotel, there are only 65 rooms in total, and this does not require them to hire a lot of staff. (, 2014) (, 2014) As for cleaning the lobby area, in Rizqun International Hotel, it has a huge lobby area and it requires a thorough cleaning, whereas in Brunei Hotel, it only has a small area that needs to be cleaned. For their facilities, the 5 star hotel have 10 meeting rooms that needs to be taken care. A lot of cleaning and services will be needed to maintain its cleanliness and the condition of the room. Other than meeting rooms, Rizqun International Hotel also has gym and swimming pool that needed to be cleaned. In the Brunei Hotel, there is only one meeting room and there is no swimming pool or gym. This shows that the......

Words: 4713 - Pages: 19

Free Essay

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

...Section 7986 Professor Name: Jose Romero Assignment due date: April 1, 2012 Assignment: 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. 1) Problem analysis This Program is intended to compute the area of a house composed of four rectangular rooms. Indeed, for this problem, we need to output the value of the total area of the house after finding and summing the areas of each room. For this to be possible, we will define output and input variables. Therefore, for this program, we will need to output the value of the following variable: * The value of the area of the house total_area (a Float variable) We will also need to input the value of the length and width of each room, subsequently the following variables: * The value of the length of the first room length1 (a Float variable) * The value of the width of the first room width1 (a Float variable) * The value of the length of the second room length2 (a Float variable) * The value of the width of the second room width2 (a Float variable) * The value of the length of the third room length3 (a Float variable) * The value of the width of the third room width3 (a Float variable) * The value of the length of the fourth room length4 (a Float variable) * The value of the width of the fourth room width4 (a Float variable) We will also need to define the value of others variable necessary to......

Words: 801 - Pages: 4

Free Essay

The Room

...In that place between wakefulness and dreams, I found myself in The Room. There were no distinguishing features save for the one wall covered with small index-card files. They were like the ones in libraries that list titles by author or subject in alphabetical order. But these files, which stretched from floor to ceiling and seemingly endlessly in either direction, had very different headings. As I drew near the wall of files, the first to catch my attention was one that read "Girls I Have Liked." I opened it and began flipping through the cards. I quickly shut it, shocked to realize that I recognized the names written on each one. And then without being told, I knew exactly where I was. This seemingly lifeless room with its small files was a crude catalog system for my life. Here were written the actions of my every moment, big and small, in a detail my memory couldn't match. A sense of wonder and curiosity, coupled with horror, stirred within me as I began randomly opening files and exploring their content. Some brought joy and sweet memories; others a sense of shame and regret so intense that I would look over my shoulder to see if anyone was watching. A file named "Friends" was next to one marked "Friends I Have Betrayed." The titles ranged from the mundane to the outright weird. "Books I Have Read," "Lies I Have Told," "Comfort I Have Given," "Jokes I Have Laughed At." Some were almost hilarious in their exactness: "Things I've Yelled at My Brothers." Others I......

Words: 1121 - Pages: 5