Steven_Barry_week2_Cp_2.doc

Steven_Barry_week2_Cp_2.doc - Input overtimeHours End Input...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Main Module Declare employeeID as integer Declare hourlyRateOfPay as real Declare regularHours as real Declare overtimeHours as real Call Input Data Module Call Gross Pay Module Call Display Wage Module End Main Module Input Data Module Write “Please enter employee’s ID number” Input employeeID Write “Please enter employee’s rate of pay” Input hourlyRateOfPay Write “Please enter employee’s regular hours” Input regularHours Write “Please enter employee’s overtime hours”
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Input overtimeHours. End Input Data Module Gross Pay Module Declare overtimePay as real Declare regularPay as real Declare grossPay as real regularPay=regularHours*hourlyRateOfPay overtimePay=overtimeHours*(hourlyRateOfPay*1.5) grossPay=regularPay+overtimePay End Gross Pay Module Display Wage Module Write “The Gross Pay for the employee number:”employeeID” is “grossPay”.” End Display Wage Module...
View Full Document

This note was uploaded on 01/15/2012 for the course IT 210 210 taught by Professor Professory during the Spring '10 term at University of Phoenix.

Ask a homework question - tutors are online