CS192 Assignment 6 Employee Data

CS192 Assignment 6 Employee Data - Employee Data Create an...

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

View Full Document Right Arrow Icon
Employee Data Create an application that continues to prompt the user for employee data and writes a report that contains a line for each employee. The application continues until the user enters 0 for an ID number to indicate the desire to quit. While the ID number is not 0, prompt the user for a value for each employee’s first and last names, street address, zip code, and job description code. Any time the user enters an invalid value, continue to re-prompt the user for the same data. Invalid values are: An employee ID number that is negative or greater than 999 A zip code that is not in the list of allowed zip codes A job description code that is not between 10 and 19 inclusive Determine the employee’s city and state based on the zip code, as described in Table 5-2. Determine the employee’s job title based on the values in Table 5-3. Determine the employee’s hourly pay rate based on the values in Table 5-4. (Contract employees have an hourly rate of $0.) When all the needed data has been entered correctly for an employee, print the ID number, first and last names, street address, city, state, zip code, job code, job title, and hourly pay rate for each employee, and prompt the user
Background image of page 1

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

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

This document was uploaded on 05/10/2011.

Page1 / 6

CS192 Assignment 6 Employee Data - Employee Data Create an...

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

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