Preview

Homework 1

Satisfactory Essays
Open Document
Open Document
386 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Homework 1
CMIS102 Homework Assignment 1 (Worth 13% of your grade)

Student Name: Heather Elliott

Class/Section: 1202CMIS1026391

Professor Name: Nicolae Tapus

Assignment due date: 1/29/12

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.

Problem= We are trying to find out what the square footage of each room of a house and the square footage of the entire house. The input would include the length and width of each room and the formula to find the answer. The output would need to include the square footage of each room and the total square footage of the house. If all the code is properly executed, we will be able to input any sized room and quickly be able to find the square footage.

B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.

Main module

Declare EntireHouse As String

Declare LivingRoom, As Float

Declare Kitchen As Float

Declare BedRoom As Float

Declare BathRoom As Float

Write “Square Footage Program”

Write “This program computes the square footage of individual rooms and”

Write “the total area of houses”

Call Input Data module

Call Perform Calculations module

Call Output Results module

End Module

Input Data Module

Write “What is the length of the room?”

Input RoomLength

Write “What is the width of the room?”

Input RoomWidth

Perform Calculations module

Declare SquareFootage as Float

Set SquareFootage = RoomLength * RoomWidth

Set TotalSquareFootage = LivingRoom + Kitchen + BedRoom + BathRoom

Output Results module

Write “The total square footage of the Kitchen is: “ + Kitchen

Write

You May Also Find These Documents Helpful

  • 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

    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

    That Crey

    • 541 Words
    • 3 Pages

    1. Farmer McDonald has 800 m of fencing and wishes to enclose a rectangular field. One side of the field is against a river and does not need fencing. Find the dimensions of the field if the fenced area is to be a maximum. A county fair has a holding area for prize sheep that are entered in a contest. The holding area is made up of 12 identical pens arranged in a two by six grid. If 100 m of fencing is available, what dimensions of each pen would maximize the total holding area? State EXACT answer. (from McGraw-Hill Ryerson Calculus & Advanced Functions Pg. 382 #12b) A piece of sheet metal 60 cm by 30 cm is to be used to make a rectangular box with an open top. Squares are to be cut from each corner of the sheet metal, the sides folded upward to form the box, and then the seams welded. Find the dimensions that will give the box with the largest volume. State EXACT answer. An enclosed can is to have a capacity of 1000 cm 3 . Find the dimensions of the can if a minimum amount of tin is to be used. The marketing department has decided that: a) its height must be at least 4 cm. b) its height must be at least 4 cm and its diameter must be at least 6 cm. Answer accurate to one decimal place. 5. An amount of $1000 is invested at 5% compounded annually. a) Write an equation for the amount of the investment, A, for t years. b) Determine the rate of change in the amount of the investment with respect to time, t. c) If the money is invested for 8 years, i) At what time is the amount a minimum? What is the minimum amount? ii) At what time is the amount a maximum? What is the maximum amount? The effectiveness of studying for an exam depends on how many hours a student studies. Some experiments show that if the effectiveness, E, is put on a scale of 0 to 10, then −t   E ( t ) = 0.5  10 + te 20  , where t is the number of hours spent studying for an examination.     If a student has up to 30 hours for studying, how many hours are needed for…

    • 541 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Homework #1

    • 251 Words
    • 1 Page

    1)Farmer Brown produces eggs and milk on his farm. He initially produces at point A. He would like to produce the same amount of eggs per day and increase his milk production by one gallon per day. Is it possible? Why or Why not?…

    • 251 Words
    • 1 Page
    Good Essays
  • Powerful Essays

    Geometry Practice Quizz

    • 3469 Words
    • 14 Pages

    7. Lina is covering a wall in her attic with wallpaper. The wall is trapezoid-shaped with top and bottom bases of 14 feet and 20 feet. The height of the wall is 8 feet. How much wallpaper will she need to cover the wall?…

    • 3469 Words
    • 14 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework 3

    • 830 Words
    • 4 Pages

    Molecule x blocked the ion channel receptor site so acetylcholine could not attach therefor not allowing the muscle to ultimately contract.…

    • 830 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Read through all of the tasks carefully, so that you know what you will need to do to complete this assignment.…

    • 1187 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework 7

    • 932 Words
    • 4 Pages

    Go to the list of datasets located on the website http://wps.aw.com/aw_stock_ie_3/178/45691/11696965.cw/index.html . Right-click the one named “Guns Data (Stata dataset)”, save it somewhere you can access it and then open it in Stata. This dataset contains panel data from 50 states plus the District of Columbia for the years 1977 through 1999. A detailed description is given in the file “Guns Data Description (PDF)” on the same page. We are interested in the effects of “shall-issue” laws relating to concealed handguns. The variable “shall” is 1 if a state has such a law, 0 otherwise. States that have “shall-issue” laws *shall* (i.e., must) give a concealed gun permit to anyone that wants one (and isn’t a felon, mentally incompetent). States that do not have “shall-issue” laws may issue permits, but generally do so only to certain types of people (i.e., their laws are much stricter). Proponents of “shall-issue” laws argue that they will reduce crime, because criminals will be deterred by the knowledge that some people are carrying guns. Critics argue that “more guns means more crime”. 1. The outcome we will analyze is the log of violence (i.e., you need to create a variable such as ln_vio using a command such as “gen lnvio=ln(vio)”. Why is it convenient to use the log of violence as the outcome variable (rather than the number of violent incidents as recorded by “vio”)? [2 points] 2. Estimate a regression of lnvio on shall for 1977: (a) How many observations are in this regression? [1 point] Is this what you expected? [Hint: think about it in relation to the number of states and the number of time periods in this regression] (2 points) (b) What does the coefficient on “shall” imply is the effect of a shall-issue law on violent incidents in 1977 (assuming we believe these estimates)? 3. Estimate a regression of lnvio on shall for 1977, controlling also for incarcrate, density, avginc, pop, pb1064, pw1064, pm1029. (a) How does this…

    • 932 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    homework7

    • 1639 Words
    • 7 Pages

    1. Give limited people to access the data. (set up authorizations.) Make sure only people who needs what information and who have rights to edit what information.…

    • 1639 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    homework 1

    • 2685 Words
    • 11 Pages

    c. D) The bowed shape indicates that opportunity cost at first increases at a decreasing rate, and then begins to increase at an increasing rate.…

    • 2685 Words
    • 11 Pages
    Good Essays
  • Good Essays

    Homework 1A

    • 763 Words
    • 3 Pages

    1. How effective was Ko in defining and framing a vision for Motorola Penang? In what ways were her efforts similar to and different from the example of Charles Schwab citied earlier?…

    • 763 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Using feedback from your professor and classmates, revise Part 1 and develop the solution and identify the advantages of the solution. Note: The disadvantages or challenges with your answers will be in Part 3.…

    • 312 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Err in Health

    • 3151 Words
    • 13 Pages

    A) It is your responsibility to read the assignment carefully and make sure you understand what you need to do and what you should hand in. If you are not sure, check with your tutor.…

    • 3151 Words
    • 13 Pages
    Powerful Essays
  • Good Essays

    Data in Housing Worksheet

    • 766 Words
    • 4 Pages

    1. Run a regression between price and area (sqft) for data in “housing ” worksheet.…

    • 766 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Homework 1

    • 833 Words
    • 4 Pages

    Victor Fuchs (1996) lists the following questions in an article in The Wall Street Journal. Identify whether the following questions involve positive or normative analysis. All the questions deal with a Republican plan to reform Medicare, the public health insurance program for the elderly. A. How many Medicare beneficiaries will switch to managed care? B. How much should the younger generation be taxed to pay for the elderly? C. Should seniors who use less care benefit financially, or should they subsidize those who use more care? D. How many Medicare beneficiaries will switch to medical saving accounts? E. What effect will these changes have on utilization?…

    • 833 Words
    • 4 Pages
    Satisfactory Essays