cis115_week5_lab - CIS115 Lab Solution WAVECREST...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS115, Lab Solution WAVECREST ENGINEERING CIS115, Lab Solution Pay Calculator (v1.0) 1/23/2011 CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This document specifies the complete analysis and design of the Pay Calculator program
Image of page 2
CIS115, Lab Solution Contents CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 3
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CIS115, Lab Solution 1. Problem Description (v1.0) A small startup software developer company needs to create a program that will calculate the pay of its  employees. For the first version of the program, the company wants the program to accept an employee’s  name, the number of hours the employee worked, and the hourly pay rate. The program will then  calculate the gross pay, display the employee’s name, number of hours worked, pay rate, and gross pay. 2. Requirements Analysis Input Variables: 1. Employee Name 2. Hours Worked 3. Hourly Pay   Processes: 1. Calculate the gross pay, display employees name, number of hours worked, pay rate, and  gross pay.  Output Variables: 1. grossPay CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 4
Image of page 4
Start getInput calculateGrossPay displayOutput End CIS115, Lab Solution 3. Design Level 1 Control Flow (not required for week 1 lab) This is not required as part of the Week 1 lab assignment, but is included for completeness. Figure 3:  Level 1 Control Flow Diagram Week 2: Hierarchy chart CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 5
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CIS115, Lab Solution CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 6
Image of page 6
CIS115, Lab Solution WEEK 3: Week 4 CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 7
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CIS115, Lab Solution CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 8
Image of page 8
CIS115, Lab Solution Week 5 Main Module Pseudocode  Start         Declare String  employeeName          Declare Real hoursWorked          Declare  Real hourlyRate         Declare  Real grossPay          Display “Welcome to Gross Pay Calculator”           Display “Enter the requested values to show the gross pay for an employee”                    Display “ Please enter your name”          Input employeeName          Display “Please enter your hourly rate” CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 9
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CIS115, Lab Solution          Input hourlyRate          Display “Please enter your total hours worked”          Input hoursWorked         Set grossPay = hoursWorked * hourlyRate                   Display “The gross pay for”, employeeName “is:”          Display “Hours worked:”, hoursWorked          Display “Hourly rate is:”, hourlyRate           Display “Gross pay is:”, grossPay                 Display “ Thank you for using my Gross Pay Calculator”
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern