Preview

Homework 1

Good Essays
Open Document
Open Document
577 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Homework 1
In this assignment, you will design a program to perform the following task:
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.
Before attempting this exercise, be sure you have completed all of chapter 2 and course module readings, participated in the weekly conferences, and thoroughly understand the examples throughout the chapter. There are 3 main components of your submission including the problem analysis, program design and documentation, and sample test data.
1. Using a similar approach as example 2.3 (textbook page 75): “Finding the Sale Price of Items in a Department Store”, provide your analysis for the following problem statement:

You need to write a program that will calculate the number of square feet (living space) in a 4-room house. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. Be sure to include what is the required output? What is the necessary input and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed.

2. Using a similar approach as the example provided in section 2.2(textbook page 78) for “The Sale Price Program continued”, provide your program design for the program you analyzed for calculating the number of square feet in a house. Be sure to describe the fundamental tasks needed to solve the problem so you can use a modular design. Provide pseudocode of your overall design that includes the Main module and the order of the module calls (see page 82 for an example). Finally, list all of your pseudocode for each module (See example 2.6 on page 83 as an example).

Include header and step comments in your pseudocode, using a similar approach as the example provided in section 2.3 (textbook page 86). See example 2.8 on pages

You May Also Find These Documents Helpful

  • 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

    Complete SR-mf-003, Change Request 5. Insert comments to document the program. Attach a design flow chart to the program’s source code.…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    CIS115 W2 Exercise

    • 757 Words
    • 10 Pages

    TCO 2—Given a simple problem, design a solution algorithm that uses arithmetic expressions and built-in functions.…

    • 757 Words
    • 10 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
  • 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

    POS 420 Week 5 UNIX Paper

    • 541 Words
    • 4 Pages

    See the Assignment 1 post in the Main forum or Course Materials forum for detailed instructions.…

    • 541 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    a. The times are a population because we are considering the wait times for all of the customers seated on Saturday night.…

    • 975 Words
    • 4 Pages
    Good Essays
  • Better Essays

    2) Examine the following pseudocode module header, and then write a statement that calls the module, passing 12 as an argument.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Good Essays

    Mat 540 Assignment 2

    • 1063 Words
    • 5 Pages

    According to the output, three variables (section, bed and pool) are insignificant because the p-value of them are larger than 0.05. The relationship between the selling price and variables should be:…

    • 1063 Words
    • 5 Pages
    Good Essays
  • Good Essays

    2. Calculate the mode for the number of bathrooms. (You can cut and paste the…

    • 1273 Words
    • 18 Pages
    Good Essays
  • Powerful Essays

    References: Taylor, B. M. (2010). Introduction to management science (11th ed.). Upper Saddle River, NJ:…

    • 649 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework #4

    • 365 Words
    • 1 Page

    Responding to the philosophical dilemma of the Euthyphro, the first conclusion “What is moral is not moral because it is commanded by (the) God(s)”, the premises to support this conclusion would be from James Rachel’s chapter, “Does Morality Depend on Religion?” Rachel evidences that “according to Exodus 20:16, God commands us to be truthful. On this option, the reason we should be truthful is simply that God requires it. Apart from the divine command, truth telling is neither good nor bad. It is God’s command that makes truthfulness right”. Rachel is stating that God commands us to be not to be liars and leaving the command on the side, telling the truth is neither good nor bad but it is God’s command to make the truth right. Also, Rachel states that lying would lead to trouble but God could have given us another command. For example, being liars and it would not be a bad thing because God gave us that command. Therefore, he could give us more reasons to command the opposite so, from a point of view of a moral; God’s command is a random choice. Thus, with this conclusion, we are stuck with consequences that even most religious people would find it offensive. The second conclusion “What is moral must be moral because it is commanded by (the) God(s)”, the premises to support this conclusion would be from James Rachel’s chapter, “Does Morality Depend on Religion?” Rachel defines “God, who is infinitely wise, realizes that truthfulness is better than deceitfulness, and so he commands us to be truthful; he sees that killing is wrong, and so he commands us not to kill; and so on for all the moral rules”. Rachel means that God knows what is right for a human being so he commands us to be honest and truthful because he knows that it is wrong. If we take this option, then we would abandon the conception of right and wrong because we are leaving ourselves open to a lack of reasoning. Many religious people opinions are to accept the fact of right…

    • 365 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Excersise 1

    • 492 Words
    • 2 Pages

    TCO 1—Given a simple business problem, design and desk-check a solution that is expressed in terms of pseudocode, flowchart, and/or input-process-output (IPO) diagrams.…

    • 492 Words
    • 2 Pages
    Satisfactory 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

    Homework2

    • 129 Words
    • 1 Page

    Instructions: Place a box around all the answers. Organize your work in an orderly fashion.…

    • 129 Words
    • 1 Page
    Satisfactory Essays