# It210 Week 2

Topics: Real number, Vector space, Integer Pages: 3 (399 words) Published: October 12, 2012
Problem:
The owners of the Super Supermarket would like to have a program that computes the monthly gross pay of their employees as well as the employee’s net pay. The input for this program is an employee ID number, hourly rate of pay, and number of regular and overtime hours worked. Gross pay is the sum of the wages earned from regular hours and overtime hours; overtime is paid at 1.5 times the regular rate. Net pay is gross pay minus deductions. Assume that deductions are taken for tax withholding (30 percent of gross pay) and parking (\$10 per month). You will need the following variables:

Analysis

Process:

1. Display a program title.
2. Prompt for the Employee ID
3. Prompt for the Hourly rate.
4. Prompt for Regular hours.
5. Prompt Overtime hours.
6. Add net and subtract tax’s equal gross.
7. Divide tax to gross.
8. Display the net.

Input:

Item Employee ID(string: EmployeeID)
Item Hourly rate(a float: HourlyRate )
Item Regular hours(a float: RegHours)
Item Gross pay(a float: GrossPay)
Item Tax(a float: Tax)
Item Parking(a float: Parking)
Item Overtime hours(a float: OverTimeHours)
Item Net pay(a float: NetPay)

Output:

Gross pay(real: GrossPay)

Design

Main Module

Declare EmployeeID as String
Declare HourlyRate as real
Declare RegHours as integer
Declare GrossPay as integer
Declare Tax as real
Declare Parking
Declare OverTimeHours
Delcare NetPay

Write “hourly rate”
Write “This program computes the total hours”
Call Input Data Module
Call Perform Calculations Module
Call Output Results Module
End Program

End Main Module

Input Data Module

Write “What is the Employee ID?”
Inpute EmployeeID
Write “What is the total hourly rate?”
Input HourlyRate
Write “what are the total regular hours?”
Input RegHours
Write “What is the gross pay”?
Input GrossPay
Write “ How much are the tax’s”?
Input Tax...

Please join StudyMode to read the full document