cis115_week2_lab

cis115_week2_lab - CIS115, Lab Solution WAVECREST...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CIS115, Lab Solution WAVECREST ENGINEERING CIS115, Lab Solution Pay Calculator (v1.0) 1/9/2011 CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 1 This document specifies the complete analysis and design of the Pay Calculator program CIS115, Lab Solution Contents CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 3 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 employees name, the number of hours the employee worked, and the hourly pay rate. The program will then calculate the gross pay, display the employees 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 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 CIS115, Lab Solution CIS115 Week 1 Lab Solution (Pay Calculator, v1.0) Page 6 CIS115, Lab Solution 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...
View Full Document

This document was uploaded on 07/31/2011.

Page1 / 14

cis115_week2_lab - CIS115, Lab Solution WAVECREST...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online