Preview

CMIS102 Homework1

Satisfactory Essays
Open Document
Open Document
703 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
CMIS102 Homework1
UMUC - CMIS102
Homework 1

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.

RoomName as String
L1 as Float
L2 as Float
L3 as Float
L4 as Float

W1 as Float
W2 as Float
W3 as Float
W4 as Float

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

Using this design, The following pseudocode has been produced:

Main module Declare Room1Name as String Declare Room2Name as String Declare Room3Name as String Declare Room4Name as String Declare YorN as Character Declare Room1Length As Float Declare Room2Length As Float Declare Room3Length As Float Declare Room4Length As Float Declare Room1Width As Float Declare Room2Width As Float Declare Room3Width As Float Declare Room4Width As Float Declare Room1SqFt as Float Declare Room2SqFt as Float Declare Room3SqFt as Float Declare Room4SqFt as Float Declare TotalSqFt as Float Write “Total Square Footage Program” Write “This program computes the square footage of up to four” Write “individual rooms and the total square

You May Also Find These Documents Helpful

  • Good Essays

    Assignment 702 Task A

    • 1663 Words
    • 5 Pages

    The Catering Services industry has struggled during the past five years. Since 2008-09, a severe economic downturn has led businesses and households to spend less on catered events. Businesses faced with plunging profitability cut back sharply on catered events such as office parties, corporate seminars and product launches, and reduced average spend per head for events that did go ahead. The deteriorating consumer climate led consumers to put off discretionary events and choose to cater events themselves or spend less at a restaurant rather than use the industry 's services.…

    • 1663 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    This exam consists of 13 questions printed on both sides with a list of formulae and two tables.…

    • 1218 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Assignment 1 for CS105

    • 1662 Words
    • 5 Pages

    Jean, a former pharmacist, is now the network administrator for the LM Pharmacy in the town of Paris, Virginia. His duties include enabling the electronic transfer of information between health care providers (i.e., doctors and hospitals), patients, and the pharmacy itself. One of Jean’s most important responsibilities is to protect health information in accordance with federal law and the pharmacy’s privacy policy.…

    • 1662 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Is3110 Week2 Assignment

    • 348 Words
    • 2 Pages

    in terms of bandwidth and storage. Your company has never traded with the U.S. Government at this…

    • 348 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    These procedures are put in place to ensure that the clients are not hurt in any way,or treated unfairly.This could include the client been discriminated against, neglected or taken advantage of in a number of ways.…

    • 809 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    The two main nano-sized particles that may be applied to construction materials in the future are titanium dioxide (TiO2) and carbon nanotubes (CNTs) (Smith, 2012)…

    • 2077 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    UNIT 2 HOMEWORK 2012

    • 908 Words
    • 4 Pages

    16. What were the colonies expected to do according to mercantilist doctrine? (Ch. 3, pgs. 72-73)…

    • 908 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    ITIS 2P91 Final Exam

    • 3743 Words
    • 20 Pages

    The only materials allowed on your desk are pens, pencils and erasers. Personal notes, course documents and textbooks are NOT allowed. Communications capable devices (cell phones, computers, palm pilots, etc.) are NOT allowed. During the exam, students are not permitted to communicate with each other, share or exchange any books, papers or read each other’s answers. No examination aids other than those specified are permitted. USE OR POSSESSION OF UNAUTHORIZED MATERIALS WILL AUTOMATICALLY RESULT IN A GRADE OF ZERO FOR THIS EXAMINATION.…

    • 3743 Words
    • 20 Pages
    Powerful Essays
  • Satisfactory Essays

    It 210 Week 7

    • 286 Words
    • 2 Pages

    2. Display the contents of the file GRADES created in Problem 1. Each student’s record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be as follows:…

    • 286 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    COM 100 Exam 1

    • 1961 Words
    • 9 Pages

    You will have 60 minutes to complete the exam from the time it is distributed. You will have ample time to read each test item carefully and respond to each test item thoughtfully. Test items are not intended to be tricky, but rather to assess the depth of your understanding.…

    • 1961 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Mcom-C100 Quiz 1

    • 386 Words
    • 2 Pages

    10. Which of the following is an example of using the media to perform the withdrawal function?…

    • 386 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    10. Write a pseudocode statement that multiplies the variable subtotal by 0.15 and assigns the…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Assignment 201 Level 2

    • 504 Words
    • 3 Pages

    Share information, ask and reply to questions, keep up to date of any changes, feedback, build team work, be professional, makes a better atmosphere, better customer service and may prevent mistakes.…

    • 504 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    2301 Final Exam Workbook 2

    • 6504 Words
    • 60 Pages

    _____ Psychology and "common sense" lead to the same conclusions about behavior and mental processes.…

    • 6504 Words
    • 60 Pages
    Good Essays
  • Good Essays

    A storysack is a large cloth bag containing a children's picture book with supporting materials to stimulate…

    • 1684 Words
    • 12 Pages
    Good Essays

Related Topics