Free Essay

Cmis Homework 1 Solutions

In:

Submitted By Tsegayart
Words 410
Pages 2
Here is one possible solution to Assignment 1. Following the solution, I have written some important general comments on programming issues and submitting assignments.

Program Description:
This program will accept the lengths and widths of four rooms from the user, then use this data to compute the total area. The result will be displayed for the user.
Analysis:
Inputs:
There are eight inputs: the lengths and widths of each room.
Outputs:
There is one output: the total area.
Obtaining the Outputs from the Inputs:
For each room, we have to multiply the length by the width to get the area. Then the four room areas are added to get the total area.
Mathematical Formulas:
Area of a rectangle: Area = Length * Width. Total area of a complex figure: add the areas of the parts.
Variables table:
Name Data Type Usage
Length1 Float Length of room 1 in feet
Width1 Float Width of room 1 in feet.
Length2 Float Length of room 2 in feet
Width2 Float Width of room 2 in feet.
Length3 Float Length of room 3 in feet
Width3 Float Width of room 3 in feet.
Length4 Float Length of room 4 in feet
Width4 Float Width of room 4 in feet.
Area1 Float Area of room 1 in square feet
Area2 Float Area of room 2 in square feet
Area3 Float Area of room 3 in square feet
Area4 Float Area of room 4 in square feet
TotalArea Float Total area in square feet

Test Cases:
[I omit this as nearly everyone presented good cases]
Pseudocode:
BEGIN PROGRAM
Declare Length1, Width1, Length2, Width2, Length3, Width3, Length 4, Width4 as Float
Declare Area1, Area2, Area3, Area4, Area5, TotalArea as Float
// Gather the input data
Print “Enter the length of room 1 in feet: “
Input Length1
Print “Enter the width of room 1 in feet: “
Input Width1
Print “Enter the length of room 2 in feet: “
Input Length2
Print “Enter the width of room 2 in feet: “
Input Width2
Print “Enter the length of room 3 in feet: “
Input Length3
Print “Enter the width of room 3 in feet: “
Input Width3
Print “Enter the length of room 4 in feet: “
Input Length4
Print “Enter the width of room 4 in feet: “
Input Width4
// Do the area computations
Set Area1 = Length1*Width1
Set Area2 = Length2*Width2
Set Area3 = Length3*Width3
Set Area4 = Length4*Width4
Set TotalArea = Area1 + Area2 + Area3 + Area4
// Display the result
Print “The total area is “ + TotalArea
END PROGRAM

Similar Documents

Premium Essay

Career Planning

...Leadership Development Seminars and ECQ-based Readings The success or failure of any endeavor depends on leadership. Now, more than ever before, we need leaders in our organizations and in our world. Great leaders create and communicate a vision and move people into action to achieve it. They ignite our passion and inspire us to do our best. Government leaders in the 21st century are experiencing change at a more rapid pace than previous generations. Rapid advances in technology have expanded the quantity of work we are capable of accomplishing, and also where it’s accomplished. We have a more highly educated workforce, yet face diminishing resources with an increased demand for productivity, and the essential services we provide to the American public. To be successful at navigating these challenges leaders must develop the essential skills to motivate their employees, effectively communicate with others, fine-tune critical thinking skills, and build and leverage partnerships. Future leaders must also be visionary; i.e., possess the ability to identify trends and the courage to be innovative. Being technically adept in your field will no longer be enough. In response to these demands on senior executives, the U.S. Office of Personnel Management identified five Executive Core Qualifications (ECQs) that all aspiring government leaders and executives must possess. These ECQs and Fundamental Competencies were developed by OPM after extensive research on the attributes...

Words: 181771 - Pages: 728

Premium Essay

Leadership Development - Doe

...Leadership Development Seminars and ECQ-based Readings The success or failure of any endeavor depends on leadership. Now, more than ever before, we need leaders in our organizations and in our world. Great leaders create and communicate a vision and move people into action to achieve it. They ignite our passion and inspire us to do our best. Government leaders in the 21st century are experiencing change at a more rapid pace than previous generations. Rapid advances in technology have expanded the quantity of work we are capable of accomplishing, and also where it’s accomplished. We have a more highly educated workforce, yet face diminishing resources with an increased demand for productivity, and the essential services we provide to the American public. To be successful at navigating these challenges leaders must develop the essential skills to motivate their employees, effectively communicate with others, fine-tune critical thinking skills, and build and leverage partnerships. Future leaders must also be visionary; i.e., possess the ability to identify trends and the courage to be innovative. Being technically adept in your field will no longer be enough. In response to these demands on senior executives, the U.S. Office of Personnel Management identified five Executive Core Qualifications (ECQs) that all aspiring government leaders and executives must possess. These ECQs and Fundamental Competencies were developed by OPM after extensive research on the attributes...

Words: 181771 - Pages: 728

Premium Essay

Daimler-Chrysler Merger Portrayal

...Evaluate KM Solutions This page intentionally left blank Knowledge Management Tools and Techniques Practitioners and Experts Evaluate KM Solutions Edited by Madanmohan Rao AMSTERDAM • BOSTON • HEIDELBERG • LONDON NEW YORK • OXFORD • PARIS • SAN DIEGO SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO Butterworth-Heinemann is an imprint of Elsevier Elsevier Butterworth–Heinemann 200 Wheeler Road, Burlington, MA 01803, USA Linacre House, Jordan Hill, Oxford OX2 8DP, UK Copyright © 2005, Elsevier Inc. All rights reserved. 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, or otherwise, without the prior written permission of the publisher. Permissions may be sought directly from Elsevier’s Science & Technology Rights Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333, e-mail: permissions@elsevier.com.uk. You may also complete your request on-line via the Elsevier homepage (http://elsevier.com), by selecting “Customer Support” and then “Obtaining Permissions.” Recognizing the importance of preserving what has been written, Elsevier prints its books on acid-free paper whenever possible. Library of Congress Cataloging-in-Publication Data Rao, Madanmohan. KM tools and techniques : practitioners and experts evaluate KM solutions / Madanmohan Rao. p. cm. Includes bibliographical references and index. ISBN 0-7506-7818-6 (alk. paper) 1. Knowledge...

Words: 182966 - Pages: 732

Premium Essay

Pr Cases

...Public Relations Cases This collection of contemporary international public relations case studies is an invaluable resource for teachers, researchers and students working in public relations, corporate communications and public affairs, as well as offering practitioners an indepth understanding of the effective use of public relations in a range of organizational contexts. Including cases from the UK, Norway, Sweden, Spain, South Africa, Canada and the USA, with a focus on such global corporations as Shell, BBC America, Worldcom, PriceWaterhouseCoopers and Marks & Spencer, it offers important insights into the development of public relations and communications strategies. These include: • • • • • • • • Corporate identity change and management Global reputation management Crisis management in the oil, shipping and tourism industries Developing strategic alliances between voluntary and private sector organizations Public relations support for international branding and market entry The importance of internal communications during international mergers The integration of public relations and marketing communications Business-to-business communication The cases examined in this book demonstrate the breadth of contemporary public relations practice and the increasing importance of the public relations function in both public and private sector organizations worldwide. Danny Moss is Co-Director of the Centre for Corporate and Public Affairs at the Manchester Metropolitan University...

Words: 107599 - Pages: 431