Free Essay

Cmis 102 Assignment 1

In:

Submitted By tenzor12
Words 304
Pages 2
Homework 1

Program Description: The program made will perform a calculation to determine the square feet of 4 rooms in a house. It will then sum the square feet of all 4 rooms to find the total usable area of a house. Given all rooms are rectangular
Analysis: The area of a room can be determined by a simple math equation of Area=Length x Width. Because we are creating a program to calculate square feet, the program will require an input and output. First thing we have to do is figure out the dimensions of the rooms. Then, we must plug in the dimensions to the appropriate variables. Afterwards, we sum all of the variables together to find the total usable area of the house. The following is the formula to determine the square feet of each room
L = Length
W = Width
Room1 = L1 * W1
Room2 = L2 * W2
Room3 = L3 * W3
Room4 = L4 * W4
Total area = Room1+Room2+Room3+Room4
Test/Pseudo code: Test Case # | Input | Expected Output | 1 | Room1: L=12, W=12
Room2: L=10, W=11Room3: L=15, W=15Room4: L=13, W=14 | 661 square feet | 2 | Room1: L=11, W=13
Room2: L=13, W=12Room3: L=16, W=14Room4: L=11, W=11 | 644 square feet | 3 | Room1: L=13, W=12
Room2: L=13, W=13Room3: L=14, W=15Room4: L=12, W=13 | 691 square feet |
Pseudo code: //this program sums the square feet of 4 rooms to determine the total usable square feet of a house //declaration of variables
//declare room 1, room 2, room 3, room 4 as integer
//design
Set room 1 = L1*W1
Set room 2 = L2*W2
Set room 3 = L3*W3
Set room 4 = L4*W4
Set total area = room 1 + room 2 + room 3 + room 4
//display output

Similar Documents

Free Essay

Cmis 102 Assignment 1

...Jeremy Lovell CMIS 102 7987 Introduction to Problem Solving and Algorithm Design (2152) Bryan Nilsen 29 March 2015 NLT: 11:59 PM Program Description: This program will calculate the total usable square feet of a house by multiplying the length of width of each room and add up the product of each room to give the total square feet. Analysis: I know to calculate square feet of a room you have to multiply the length and width. Since the house has multiple rooms to get the total square feet you have to add the square feet of each room to get the total. I decide to create the input simple by giving the variables names that are easily identifiable. L stands for Length and W stands for Width, RM stands for room which is the product of the corresponding Length and Width. Finally SgFT is the sum of all three RMs. I used these variable names to easily see within the program where I get there data values. Test Data: | Input: | Output | Test Case 1: | Room1: length=10, width=20 Room2: length=15, width=10 Room3: length=20, width=15 | Total Square Feet: 650 | Test Case 2: | Room1: length=13, width=11 Room2: length=9, width=7 Room3: length=22, width=19 | Total Square Feet: 624 | Test Case 3: | Room1: length=8, width=6 Room2: length=4, width=12 Room3: length=30, width=25 | Total Square Feet: 846 | Pseudocode: //Declare Variables Declare L1, L2, L3, W1, W2, W3, RM1, RM2, RM3 and SqFT //Set Values of Variables Set L1=10 Set L2=15 Set L3=20 Set W1=20 ...

Words: 294 - Pages: 2

Premium Essay

Adas

...CMIS102 Homework Assignment 1 (Worth 13% of your grade) Student Name: Class/Section: CMIS 102 Professor Name: Assignment due date: 03 November 2013 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. a. What is the required output? i. Total square feet of the house. TotalSquareFeet b. What is the necessary input? i. Length of each room. Length# ii. Width of each room. Width# iii. Square feet of each room. SquareFeet# c. How will we obtain the required output from the given input? i. SquareFeet# = Length# x Width# ii. TotalSquareFeet = SquareFeet1 + SquareFeet2 + SquareFeet3 + SquareFeet4 d. Variable names and definitions. i. TotalSquareFeet = The total square feet of the house. ii. Length# = The length of the room with the corresponding number. iii. Width# = The width of the room with the corresponding number. iv. SquareFeet# = The total square feet of the room with the corresponding number. B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudo code. ...

Words: 257 - Pages: 2

Free Essay

Security Policy

...University of Maryland University College CMIS 102 - Introduction to Problem Solving & Algorithm Design Section 6383 (WebTycho) Assignment 4 – Flow Control Statements 8 points Due by Saturday, April 3, 2010 at Midnight   This program is to be submitted via the WebTycho Assignments folder no later than the date and time shown above to avoid losing points per the rules stated in the Syllabus. Do not mail, e-mail or fax this assignment to the instructor or TA! It is your responsibility to review the policies for the assignments and projects specified in the syllabus and adhere to all guidelines. These rules are meant to apply equally to everyone. Please do not ask for special exceptions! There is no extra ‘make-up work’ for points lost on this exercise.   This programming exercise requires you to demonstrate your understanding and mastery of: |Functional Programming |Modules | |Step-wise refinement |Flow control statements | |Selection and Repetition structures |Program documentation | 1. (5 points): Complete the Programming Exercise: Maximum of three floating points. The code template is provided below 2. (3 points): Test your code with the numbers shown in the table below, See if you get the expected answer Develop a test suite for your code. Test your...

Words: 485 - 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.

...CMIS102 Homework Assignment 1 Student Name: Neal Fowler Class/Section: CMIS 102 Section 6385 Professor Name: Marie Arvi Assignment due date: 6 January 2014 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: 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...

Words: 472 - 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

...CMIS102 Homework Assignment 1 Student Name: Abel Patrick Assizo Class/Section: CMIS 102 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...

Words: 801 - Pages: 4

Free Essay

Cmis 102 Hw2

...CMIS102 Homework Assignment 2 Student Name: Class/Section: CMIS 102/ 3110 Professor Name: Assignment due date: 03 February 2014 Problem definition: Calculate the total price to purchase all the components required to build a state-of-the-art gaming computer from components available on the internet. A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section. We are writing a program to calculate the total cost of a gaming computer system. The total cost the computer system should be calculated using the following formula (TotalCost= CpuChoiceCost + RAMChoiceCost + HardDriveCost + ComponentsCost). The cost will be represented by integers. The results should be placed in variable TotalCost. The inputs, for the program are: ComponentsCost, TotalCost, A to Q, Yes or No The output for the program is TotalCost As Float. 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 MotherboardCost, CpuChoiceCost, SounCardCost, GraphicsCardCost, CaseCost, MonitorCost, PowerSupplyCost, DVDDriveCost, HardDriveCost, RAMChoiceCost, OperatingSystemCost AS Character Declare A to R As Integer Display a Welcome message Write “Welcome to Computer World” // Prompt for and input start building your system: Write “Would you like to start building your System?” Input Yes OR No Display...

Words: 955 - Pages: 4

Free Essay

Cmis102Hw2

...NAME: CMIS 102 INSTRUCTOR: Due Date: Program Description: This program will calculate the total cost of a customized gaming PC using user selections for Case, Hard Drive, and Graphics Card. There is a baseline cost included in the final price. Analysis: The formula used to determine the computer cost is: TotalCost=CaseCost + HDCost +GPUCost + BaselineCost. All cost items are integers. Input values are TotalCost, A-I. Output value is TotalCoast as Float. Baseline price is a fixed float of 649.99 Prices were determined using the website: www.newegg.com Case Options | Hard Drive Options | GPU Options | A: Rosewill THOR V2-$129.99 | D: Seagate Hybrid 2TB-$109.99 | G: EVGA GeForce GTX 970-$349.99 | B: AZZA Solano 1000-$119.99 | E: Western Digital Red 3TB-$124.99 | H: ZOTAC GeForce GTX 970-$549.99 | C: Thermaltake Chaser MK-I-$114.99 | F: HGST Deskstar 4TB-$184.99 | I: XFX Radeon R9 290X-$329.99 | Test Plan Test Case | Input | Expected Output | 1 | Baseline: $649.99Case A:$129.99Hard Drive E: $124.99GPU G: $349.99 | Total Cost: $1254.96 | 2 | Baseline: $649.99Case B: 119.99Hard Drive D: $109.99GPU I: 329.99 | Total Cost: $1209.96 | 3 | Baseline: $649.99Case C: $114.99Hard Drive F: $184.99GPU H: $549.99 | Total Cost: $1499.96 | START START FLOWCHART END END WRITE “The Total Cost of your gaming PC is $” + TotalCost WRITE “The Total Cost of your gaming PC is $” + TotalCost SET TotalCost=Baseline + CaseCost + HDCost + GPUCost SET TotalCost=Baseline...

Words: 704 - Pages: 3

Premium Essay

Uk Deloitte Annual Report

...Financial Statements 2011 Contents Report to members 1 Report of the independent auditor to the members of Deloitte LLP 10 Consolidated income statement 11 Consolidated statement of comprehensive income 12 Consolidated balance sheet 13 Consolidated statement of changes in equity 15 Consolidated cash flow statement 16 Notes to the financial statements 17 Report to members The Board presents its report to the members and the audited financial statements of Deloitte LLP for the year ended 31 May 2011. The financial statements incorporate the financial statements of Deloitte LLP and all its subsidiary undertakings (the ‘group’), drawn up to 31 May each year. The financial statements that will be filed at Companies House will comprise the consolidated financial statements together with the separate financial statements of Deloitte LLP. Executive Group Deloitte’s activities are managed by the Senior Partner and Chief Executive and the Executive Group, which is appointed by the Senior Partner and Chief Executive. In keeping with our client service focus, members of the Executive Group are also actively engaged with our clients. The members of the Executive Group are: David Sproul, Senior Partner and Chief Executive, Steve Almond, International Markets, Margaret Ewing, Public Policy, Quality & Risk, Sharon Fraser, Regional Markets, Stephen Griggs, Finance, Heather Hancock, Brand and Talent, Andy Hodge,...

Words: 16221 - Pages: 65

Free Essay

Ct1 Actuarial Notes

...CT1 – P C – 09 Combined Materials Pack ActEd Study Materials: 2009 Examinations Subject CT1 Contents Study Guide for the 2009 exams Course Notes Question and Answer Bank Series X Assignments* *Note: The Series X Assignment Solutions should also be supplied with this pack unless you chose not to receive them with your study material. If you think that any pages are missing from this pack, please contact ActEd’s admin team by email at ActEd@bpp.com or by phone on 01235 550005. How to use the Combined Materials Pack Guidance on how and when to use the Combined Materials Pack is set out in the Study Guide for the 2009 exams. Important: Copyright Agreement This study material is copyright and is sold for the exclusive use of the purchaser. You may not hire out, lend, give out, sell, store or transmit electronically or photocopy any part of it. You must take care of your material to ensure that it is not used or copied by anybody else. By opening this pack you agree to these conditions. The Actuarial Education Company © IFE: 2009 Examinations All study material produced by ActEd is copyright and is sold for the exclusive use of the purchaser. The copyright is owned by Institute and Faculty Education Limited, a subsidiary of the Faculty and Institute of Actuaries. You may not hire out, lend, give out, sell, store or transmit electronically or photocopy any part of the study material. You must take care of your study material to ensure that...

Words: 168437 - Pages: 674

Premium Essay

Market Research Problem

...analyzovat zvolený trh, popř. zvolené trhy, formuluje doporučení pro tvorbu daného produktu a provede ekonomické vyhodnocení jeho zavedení. Použité metody: Analýza sekundárních dat, dedukce, deskripce, komparace, relevantní matematicko-statistické metody. Rozsah grafických prací: Rozsah práce bez příloh: předpoklad cca 15 tabulek a grafů 60 – 70 stran Seznam odborné literatury: BOLDIŠ, P. Bibliografické citace dokumentu podle ČSN ISO 690 a ČSN ISO 690-2 (01 0197): Část 1 – Citace: metodika a obecná pravidla. Verze 3.2 [online]. 1999–2002. Poslední aktualizace 2002-09-03. Dostupné na World Wide Web: HENDL, J. Kvalitativní výzkum – základní metody a aplikace. 1. vyd. Praha : Portál, 2005. 408 s. ISBN 80-7667-040-2. HENDL, J. Přehled statistických metod zpracování dat – Analýza a meta analýza dat. 1. vyd. Praha : Portál, 2004. 584 s. ISBN 80-7178-820-1. KOTLER, P. Marketing management. 10. rozšířené vyd. Praha : Grada, 2001. 719 s. ISBN 80-247-0016-6. TOMEK, G. – VÁVROVÁ, V. Výrobek a jeho úspěch na trhu. 1. vyd. Praha : Grada, 2001. 352 s. ISBN 80-247-0053-0. Vedoucí diplomové...

Words: 33489 - Pages: 134

Premium Essay

Case Studies on Performance Management

...CASE STUDIES IN PERFORMANCE MANAGEMENT A Guide from the Experts TONY ADKINS John Wiley & Sons, Inc. CASE STUDIES IN PERFORMANCE MANAGEMENT CASE STUDIES IN PERFORMANCE MANAGEMENT A Guide from the Experts TONY ADKINS John Wiley & Sons, Inc. This book is printed on acid-free paper. Copyright © 2006 by SAS Institute. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and product names are trademarks of their respective companies. Published by John Wiley & Sons, Inc., Hoboken, New Jersey. Published simultaneously in Canada. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400, fax 978-646-8600, or on the web at www.copyright.com. Requests to the publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, 201-748-6011, fax 201-748-6008, or online at http://www.wiley.com/go/permissions...

Words: 77510 - Pages: 311

Free Essay

Advance Case with Ibm Case Manager

...Front cover Advanced Case Management with IBM Case Manager Introducing case management and IBM Case Manager Building IBM Case Manager solutions with use case example Covering customization, rules, deployment, and more Wei-Dong Zhu Brian Benoit Bob Jackson Johnson Liu Mike Marin Seema Meena Juan Felipe Ospina Guillermo Rios ibm.com/redbooks International Technical Support Organization Advanced Case Management with IBM Case Manager May 2014 SG24-7929-03 Note: Before using this information and the product it supports, read the information in “Notices” on page xiii. Fourth Edition (May 2014) This edition applies to Version 5.2.0, IBM Case Manager (product number 5725-A15). © Copyright International Business Machines Corporation 2013, 2014. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Now you can become a published author, too! . . . . . . . . . . . . . . . . ...

Words: 95119 - Pages: 381

Premium Essay

Ibt Law

...INTERNATIONAL BUSINESS TRANSACTIONS OUTLINE – WINTER 2005 - SPANOGLE The book is designed around three types of transactions: 1) Sale of goods across borders; 2) Transfer of technology; a. Licensing production abroad; b. Franchising. 3) Direct Foreign Investment. There are two parts to making these deals: 1) Deal-making aspect; a. Allocating risks; 2) Government regulation Decisions and Risks in Trade – Analyze for each Problem! • The language in which the contract is executed. o They speak German- the purchase order is German; o Battle of the Forms (CISG) with another language, you have problem 4.1. (like the Chicken Frigalamenti case). o Even if the transaction is in English, there may still be communication difficulties. • Currency o How are they going to pay you, in Euros or in dollars? It’s important because the exchange rate changes, you may prefer to be paid in Euros rather than dollars because right now the dollar is doing badly. o What if the purchase order is from Laos instead of Germany? If you don’t know the name of the Laotian currency, you probably don’t want it. There are lots of currency problems that go beyond exchange. • Shipping – Import Regulations/Export Regulations handled by customs brokers. o German Customs o Import Duties; o Tariffs. o You might need a shipping broker. o Can’t bribe, “grease the wheels” due to the Foreign Corrupt Practices...

Words: 27863 - Pages: 112

Premium Essay

Book

...circumstance”……………………………………...Bowley. STRUCTURE: 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 Introduction Meaning and Definitions of Statistics Types of Data and Data Sources Types of Statistics Scope of Statistics Importance of Statistics in Business Limitations of statistics Summary Self-Test Questions Suggested Readings 1.1 INTRODUCTION For a layman, ‘Statistics’ means numerical information expressed in quantitative terms. This information may relate to objects, subjects, activities, phenomena, or regions of space. As a matter of fact, data have no limits as to their reference, coverage, and scope. At the macro level, these are data on gross national product and shares of agriculture, manufacturing, and services in GDP (Gross Domestic Product). 1 At the micro level, individual firms, howsoever small or large, produce extensive statistics on their operations. The annual reports of companies contain variety of data on sales, production, expenditure, inventories, capital employed, and other activities. These data are often field data, collected by employing scientific survey techniques. Unless regularly updated, such data are the product of a one-time effort and have limited use beyond the situation that may have called for their collection. A student knows statistics more intimately as a subject of study like economics, mathematics, chemistry, physics, and others. It is a discipline, which scientifically deals with data,...

Words: 134607 - Pages: 539

Premium Essay

Paper

...ended December 31, 2010 or Transition report pursuant to Section 13 or 15(d) of the Securities Exchange Act of 1934 For the transition period from Commission File Number 1-87 to EASTMAN KODAK COMPANY (Exact name of registrant as specified in its charter) NEW JERSEY (State of incorporation) 343 STATE STREET, ROCHESTER, NEW YORK (Address of principal executive offices) Registrant’s telephone number, including area code: __________________________ Securities registered pursuant to Section 12(b) of the Act: Title of each Class Common Stock, $2.50 par value Securities registered pursuant to Section 12(g) of the Act: None Indicate by check mark if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Yes [X] No [ ] Name of each exchange on which registered New York Stock Exchange 16-0417150 (IRS Employer Identification No.) 14650 (Zip Code) 585-724-4000 Indicate by check mark if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act. Yes [ ] No [X] Indicate by check mark whether the registrant (1) has filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months, and (2) has been subject to such filing requirements for the past 90 days. Yes [X] No [ ] 1 Indicate by check mark whether the registrant has submitted electronically and posted on its corporate Website, if any, every Interactive Data File required to be submitted...

Words: 115418 - Pages: 462