Project 3
Due: Sunday July 8, Midnight
Write an employee tracking program. Effectively what this means is that you have to write a program that will take three entries, consisting of: an employee name (string, first and last name), id number (integer), salary per year (double), and title (string), each. It should store these such that they will be accessable later in the program, and then, continually, ask the user if he/she would like to make any changes to the input, should they answer yes, then the program will allow the user to modify the entry (if the input is nothing (i.e. only a newline) then leave the entry unchanged). Your program should accept either yes, y, no, or n as valid for the answer to the question. Following this, the program will output all three employee's information in a readable format... If the employee's title is Manager, the user must also enter the employee's id number in order to modify the employee information. When asking the user to modify an employee, you must ask the user for the name of the employee which he/she wishes to modify, and only modify that particular employee's information.
Notes:
% tracker
Name: David Johnson
Id: 35718
Salary: $56078.98
Title: Manager
(enter all two more employees' data... )
Would you like to modify this entry (yes/no)?
yes
For a manager, you must also enter the id number of the
employee: 98375
That is not correct!
Would you like to modify this entry (yes/no)?
no
Employee Information
Name: David Johnson
Id: 35718
Salary: $56078.98
Title: Manager
(output for other two employees)
Example 3:
Name: John Doe
Idnum: 34523
Title: programmer
Salary: $ 34532
(do this for each employee (ie. three times))
Do you want to modify this data?
yes
Which employee do you wish to modify:
John Doe
Name:
Idnum:
Title: manager
Salary: $
Do you want to modify this data?
no
(output of all three employee's information...)