Premium Essay

Cis 115 Week 3 Exercise Solution

In:

Submitted By buboi1130
Words 861
Pages 4
Week 3 Activity—Calculate Overtime Pay
-------------------------------------------------
TCO 3—Given a simple problem, design and desk-check a solution algorithm requiring a modular design that is expressed in terms of pseudocode or program notes, input-process-output (IPO) analysis, and flow chart.
-------------------------------------------------
TCO 4—Given a simple problem that requires one or more decisions, create a working solution that uses decisions with logical and relational expressions.
-------------------------------------------------
TCO 8—Given a more complex problem, develop a complete solution that includes a comprehensive statement of the problem, complete program design, and program documentation.
-------------------------------------------------

Assignment
You will need to design an application that it will prompt a user for his or her hourly pay rate, his or her hours worked, and whether he or she is single, married, divorced, or widowed. It will then calculate his or her gross and net pay. If the user works more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If he or she is married, use a flat tax rate of 15%. If he or she is single, use 22%; if he or she is divorced, use 23%; and if he or she is widowed, use 13% (I realize that these are not very realistic). Below is a sample of what the program should do when run.
(No overtime example)
Enter hourly pay rate: 10.00
Enter hours worked: 35
Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: M
Gross pay is $350.00
Net pay is $297.50

(Overtime example)
Enter hourly pay rate: 10.00
Enter hours worked: 45
Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: S
Regular pay is $400.00
Overtime pay is $75.00
Gross pay is $475.00
Net pay is $370.50

Rubric
Complete the steps and submit the completed file

Similar Documents

Premium Essay

Form

...OFFICIAL CATALOG This Catalog contains information, policies, procedures, regulations and requirements that were correct at the time of publication and are subject to the terms and conditions of the Enrollment Agreement entered into between the Student and ECPI University. In keeping with the educational mission of the University, the information, policies, procedures, regulations and requirements contained herein are continually being reviewed, changed and updated. Consequently, this document cannot be considered binding. Students are responsible for keeping informed of official policies and meeting all relevant requirements. When required changes to the Catalog occur, they will be communicated through catalog inserts and other means until a revised edition of the Catalog is published. The policies in this Catalog have been approved under the authority of the ECPI University Board of Trustees and, therefore, constitute official University policy. Students should become familiar with the policies in this Catalog. These policies outline both student rights and student responsibilities. The University reserves the right and authority at any time to alter any or all of the statements contained herein, to modify the requirements for admission and graduation, to change or discontinue programs of study, to amend any regulation or policy affecting the student body, to increase tuition and fees, to deny admission, to revoke an offer of admission and to dismiss from the...

Words: 149595 - Pages: 599

Free Essay

Ratiopharm Report Emea

...E-mail: mail@emea.europa.eu http://www.emea.europa.eu © European Medicines Agency, 2008. Reproduction is authorised provided the source is acknowledged. TABLE OF CONTENTS 1 BACKGROUND INFORMATION ON THE PROCEDURE................................................... 3 1.1 Submission of the dossier ...................................................................................................... 3 1.2 Steps taken for the assessment of the product........................................................................ 3 2 SCIENTIFIC DISCUSSION......................................................................................................... 5 2.1 Introduction............................................................................................................................ 5 2.2 Quality aspects ....................................................................................................................... 5 2.3 Non-clinical aspects ............................................................................................................... 9 2.4 Clinical aspects .................................................................................................................... 23 3 OVERALL CONCLUSIONS, RISK/BENEFIT ASSESSMENT AND RECOMMENDATION............................................................................................................... 55...

Words: 26739 - Pages: 107

Premium Essay

Maths

...Solutions to Questions on Hypothesis Testing and Regression 1. A mileage test is conducted for a new car model, the “Pizzazz.” Thirty (n=30) random selected Pizzazzes are driven for a month and the mileage is carefully measured in each. The mean mileage for the sample is 28.6 miles per gallon (mpg) and the sample standard deviation is 2.2 mpg. Estimate a 95% confidence interval for the mean mpg in the entire population of Pizzazzes (you might need to round your answer a little bit to agree with mine). (a) (b) (c) (d) (e) (23.42, 33.84) (27.81, 29.39) (26.82, 30.47) (27.23, 30.03) None of the above 2. Determine the test statistic for testing the null hypothesis that the population mean is 27 mpg ( H0 : µ = 27 Ha : µ ≠ 27 ) (a) (b) (c) (d) (e) (f) t = 3.98 t = -3.98 t = 4.6 t = -4.6 t = 1.96 None of the above 3. A Type II error is made when a. b. c. d. e. the null hypothesis is accepted when it is false. the null hypothesis is rejected when it is true. the alternate hypothesis is accepted when it is false. the null hypothesis is accepted when it is true. the alternate hypothesis is accepted when it is true. 4. A recent USA TODAY/CNN/Gallup Poll showed that most American people support Bush’s efforts in the Middle East peace process. The poll of 2000 adults was conducted and 1243 people said they supported Bush’s efforts. a) Find a 95% confidence interval for p, the fraction of Americans who support Bush’s efforts phat =...

Words: 6827 - Pages: 28

Premium Essay

Aau Catalog

...ALLIED AMERICAN UNIVERSITY Personalized. Flexible. Dedicated. Online Programs – Individual Support – Open Enrollment – Ease of Transfer Credits UNIVERSITY CATALOG 2013 Seventh Edition 22952 Alcalde Drive, Laguna Hills, CA 92653 Phone: (888) 384-0849 ∼ Fax: (949) 707-2978 7:00 A.M. – 5:00 P.M. (Monday – Friday) Email: info@allied.edu Website: www.allied.edu KEY STAFF AND FACULTY Charlotte Hislop, Ph.D. Candidate, President/CEO Bonny Nickle, Ed.D., Provost Eric Sharkey, M.Ed., Director of Education Bill Luton, Ph.D., Director of Assessment and Dean of Business Carlo Tannoury, Ph.D. Candidate, Dean of Computer Information Systems Patricia Drown, Ph.D., Dean of Criminal Justice and General Studies C.J. Bishop, M.B.A., Institutional Research Frank Vazquez, Operations Director Parrish Nicholls, J.D., Director of Compliance Lindsay Oglesby, Admissions Director Abby Dolan, B.A., Registrar Sasha Heard, M.B.A., Student Services Manager Barbara Jobin, B.S.B.A., Career Center Manager Hugo Aguilar, B.A., Chief Financial Officer Richard Madrigal, B.A., Financial Aid Officer As a prospective student at Allied American University, you are encouraged to review this catalog prior to signing an enrollment agreement. You are also encouraged to review the student performance fact sheet which must be provided to you prior to signing an enrollment agreement. This catalog is not a contract between the student, AAU, or any party or parties. Reasonable effort was made at the time this document...

Words: 52297 - Pages: 210

Free Essay

Geriatrics

...Geriatrics Geriatrics Jennifer P. Dugan, Pharm.D., BCPS Clinical Assistant Professor University of Colorado Colorado, Denver Updates in Therapeutics: The Pharmacotherapy Preparatory Review and Recertification Course 31 Geriatrics Learning Objectives: The following case pertains to questions 2 and 3. J.T. is an 82-year-old community-dwelling woman with a history of stage III Parkinson disease, hypertension, and urinary incontinence (UI). She is receiving carbidopa/levodopa, pramipexole, selegiline, tolterodine, diazepam, metoprolol, and hydrochlorothiazide. When she comes to your pharmacy to get her prescriptions, she walks slowly with a cane, and she is stooped over. 1. Identify age-related pharmacokinetic and pharmacodynamic changes in older people. 2. Evaluate the pharmacotherapy regimens of older people to support the maintenance of optimal physical and mental function. 3. Identify inappropriate medication prescribing in older people. 4. Recommend appropriate pharmacotherapy for patients with dementia. 5. Evaluate the risks and benefits of the use of antipsychotics (APs) (including atypical APs) in older patients with dementia. 6. Recommend appropriate interventions for patients suffering from behavioral symptoms related to dementia. 7. Identify the types of urinary incontinence and recommend appropriate treatments. 8. Given a patient’s American Urology Association Symptom Index for benign prostatic hyperplasia, recommend...

Words: 14090 - Pages: 57

Free Essay

Psycho Education

...Psychoeducation for schizophrenia (Review) Xia J, Merinder LB, Belgamwar MR This is a reprint of a Cochrane review, prepared and maintained by The Cochrane Collaboration and published in The Cochrane Library 2013, Issue 1 http://www.thecochranelibrary.com Psychoeducation for schizophrenia (Review) Copyright © 2013 The Cochrane Collaboration. Published by John Wiley & Sons, Ltd. TABLE OF CONTENTS HEADER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ABSTRACT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLAIN LANGUAGE SUMMARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SUMMARY OF FINDINGS FOR THE MAIN COMPARISON . . . . . . . . . . . . . . . . . . . BACKGROUND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OBJECTIVES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . METHODS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RESULTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Figure 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DISCUSSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AUTHORS’ CONCLUSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ACKNOWLEDGEMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . REFERENCES...

Words: 61871 - Pages: 248

Free Essay

Academic Writing

...Mathematical Writing by Donald E. Knuth, Tracy Larrabee, and Paul M. Roberts This report is based on a course of the same name given at Stanford University during autumn quarter, 1987. Here’s the catalog description: CS 209. Mathematical Writing—Issues of technical writing and the effective presentation of mathematics and computer science. Preparation of theses, papers, books, and “literate” computer programs. A term paper on a topic of your choice; this paper may be used for credit in another course. The first three lectures were a “minicourse” that summarized the basics. About two hundred people attended those three sessions, which were devoted primarily to a discussion of the points in §1 of this report. An exercise (§2) and a suggested solution (§3) were also part of the minicourse. The remaining 28 lectures covered these and other issues in depth. We saw many examples of “before” and “after” from manuscripts in progress. We learned how to avoid excessive subscripts and superscripts. We discussed the documentation of algorithms, computer programs, and user manuals. We considered the process of refereeing and editing. We studied how to make effective diagrams and tables, and how to find appropriate quotations to spice up a text. Some of the material duplicated some of what would be discussed in writing classes offered by the English department, but the vast majority of the lectures were devoted to issues that are specific to mathematics and/or computer science. Guest lectures by...

Words: 48549 - Pages: 195

Premium Essay

Study Habits

...uk School management of students with a lack of sleep Type Journal Article Author Editorial Publication Education and Health Volume 30 Issue 3 Page 56 Date 2012 URL http://sheu.org.uk/x/eh303ed1.pdf Sleepless in America: School start times Type Journal Article Author Editorial Publication Education and Health Volume 30 Issue 3 Page 57 Date 2012 URL http://sheu.org.uk/sites/sheu.org.uk/files/imagepicker/1/eh303ed2.pdf Ready, willing, and able? Sleep hygiene education, motivational interviewing and cognitive behaviour therapy for insomnia in an Australian high school setting Type Journal Article Author Neralie Cain Abstract Cognitive behaviour therapy for insomnia is well-regarded as an effective treatment for insomnia in adults. Previous studies also suggest that CBT-i can be successfully applied to adolescents experiencing insomnia and other sleep problems, which most commonly involve delayed sleep timing. The recommended treatment involves a combined program of morning bright light therapy, stimulus control therapy, and education about sleep hygiene. Improving sleep pattern regularity by getting up earlier on weekends (i.e., at a time closer to the weekday wake-up time) can play a particularly important role in increasing total sleep time during the week and decreasing daytime sleepiness. Recent research...

Words: 8781 - Pages: 36

Premium Essay

Econometrics Solutions Wooldrige

...data sets that have both a cross-sectional and time dimension. I spend almost an entire lecture talking about the problems inherent in drawing causal inferences in the social sciences. I do this mostly through the agricultural yield, return to education, and crime examples. These examples also contrast experimental and nonexperimental data. Students studying business and finance tend to find the term structure of interest rates example more relevant, although the issue there is testing the implication of a simple theory, as opposed to inferring causality. I have found that spending time talking about these examples, in place of a formal review of probability and statistics, is more successful (and more enjoyable for the students and me). 3 CHAPTER 2 TEACHING NOTES This is the chapter where I expect students to follow most, if not all, of the algebraic derivations. In class I like to derive at least the unbiasedness of the OLS slope coefficient, and usually I derive the variance. At a minimum, I talk about the factors affecting the variance. To simplify the notation, after I emphasize the assumptions in the population model, and assume random sampling, I just condition on the values of the explanatory variables in the sample. Technically, this is justified by random...

Words: 73034 - Pages: 293

Premium Essay

Wooldridge - Introductory Econometrics 2nd Ed. Solutions

...data sets that have both a cross-sectional and time dimension. I spend almost an entire lecture talking about the problems inherent in drawing causal inferences in the social sciences. I do this mostly through the agricultural yield, return to education, and crime examples. These examples also contrast experimental and nonexperimental data. Students studying business and finance tend to find the term structure of interest rates example more relevant, although the issue there is testing the implication of a simple theory, as opposed to inferring causality. I have found that spending time talking about these examples, in place of a formal review of probability and statistics, is more successful (and more enjoyable for the students and me). 3 CHAPTER 2 TEACHING NOTES This is the chapter where I expect students to follow most, if not all, of the algebraic derivations. In class I like to derive at least the unbiasedness of the OLS slope coefficient, and usually I derive the variance. At a minimum, I talk about the factors affecting the variance. To simplify the notation, after I emphasize the assumptions in the population model, and assume random sampling, I just condition on the values of the explanatory variables in the sample. Technically, this is justified by random sampling...

Words: 73034 - Pages: 293

Free Essay

Fuzzy Control

...mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Printed simultaneously in Canada. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and AddisonWesley was aware of a trademark claim, the designations have been printed in initial caps or in all caps. MATLAB is a registered trademark of The MathWorks, Inc. Library of Congress Cataloging-in-Publication Data Passino, Kevin M. Fuzzy control / Kevin M. Passino and Stephen Yurkovich. p. cm. Includes bibliographical references and index. ISBN 0-201-18074-X 1. Automatic control. 2. Control theory. 3. Fuzzy systems. I. Yurkovich, Stephen. II. Title. TJ213.P317 1997 629.8’9--DC21 97-14003 CIP Instructional Material Disclaimer: The...

Words: 211473 - Pages: 846

Premium Essay

Chem

...Solutions to Chapter 2 Problems A Note To Instructors: Because of volatile energy prices in today's world, the instructor is encouraged to vary energy prices in affected problems (e.g. the price of a gallon of gasoline) plus and minus 50 percent and ask students to determine whether this range of prices changes the recommendation in the problem. This should make for stimulating inclass discussion of the results. 2-1 The total mileage driven would have to be specified (assumed) in addition to the variable cost of fuel per unit (e.g. $ per gallon). Also, the fixed cost of both engine blocks would need to be assumed. The efficiency of the traditional engine and the composite engine would also need to be specified 24 © 2015 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This publication is protected by Copyright and written permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department, Pearson Education, Inc., Upper Saddle River, NJ 07458. 2-2 Fixed Raw Materials Direct Labor Supplies Utilities* Property Taxes Administrative Salaries Payroll Taxes Insurance-Building and Equipment Clerical Salaries Sales Commissions Rent Interest on Borrowed Money * X X X X X X Variable ...

Words: 10954 - Pages: 44

Premium Essay

Sponsorship

...Applications for the copyright holder’s written permission to reproduce any part of this publication should be addressed to 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.co.uk. You may also complete your request on-line via the Elsevier homepage (http://www.elsevier.com), by selecting ‘Customer Support’ and then ‘Obtaining Permissions’ British Library Cataloguing in Publication Data A catalogue record for this book is available from the British Library Library of Congress Cataloguing in Publication Data A catalogue record for this book is available from the Library of Congress ISBN 0 7506 6372 3 For...

Words: 46330 - Pages: 186

Free Essay

Graduate Student

...Gu CPS 230 Fall Semester of 2008 Table of Contents 1 I 2 3 4 5 Introduction D ESIGN T ECHNIQUES Divide-and-Conquer Prune-and-Search Dynamic Programming Greedy Algorithms First Homework Assignment S EARCHING 3 4 5 8 11 14 17 18 19 22 26 29 33 34 35 38 41 44 IV 13 14 15 16 G RAPH A LGORITHMS Graph Search Shortest Paths Minimum Spanning Trees Union-Find Fourth Homework Assignment T OPOLOGICAL A LGORITHMS 17 18 19 Geometric Graphs Surfaces Homology Fifth Homework Assignment G EOMETRIC A LGORITHMS 20 21 22 Plane-Sweep Delaunay Triangulations Alpha Shapes Sixth Homework Assignment NP-C OMPLETENESS 23 24 25 Easy and Hard Problems NP-Complete Problems Approximation Algorithms Seventh Homework Assignment 45 46 50 53 56 60 61 62 65 68 72 73 74 77 81 84 85 86 89 92 95 V II 6 7 8 9 Binary Search Trees Red-Black Trees Amortized Analysis Splay Trees Second Homework Assignment P RIORITIZING VI III 10 11 12 Heaps and Heapsort Fibonacci Heaps Solving Recurrence Relations Third Homework Assignment VII 2 1 Introduction Meetings. We meet twice a week, on Tuesdays and Thursdays, from 1:15 to 2:30pm, in room D106 LSRC. Communication. The course material will be delivered in the two weekly lectures. A written record of the lectures will be available on the web, usually a day after the lecture. The web also contains other information, such as homework assignments, solutions, useful links, etc. The main supporting text is TARJAN . Data Structures...

Words: 49158 - Pages: 197

Premium Essay

Daimler-Chrysler Merger Portrayal

...Tools and Techniques Practitioners and Experts 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...

Words: 182966 - Pages: 732