Your assignment is to track the corporate careers


Your assignment is to track the corporate careers of some up-and-coming executives who are busily changing jobs, and, of course, getting paid.
In this version of the corporate world, people whether belong to a company or are unemployed.
The list of people the program must deal with is not fixed:
initially there are none, and new people may be introduced by the JOIN command.
(see below).
An employee's salary is $5000. Unemployment people draw $500 in unemployment compensation.
INPUT
1. From file "company.txt": The company names are listed one per line. There are
at most 20 companies. Company names are at most 10 characters and do not
contain embedded blanks.
2. From the keyboard: Commands, as listed below. and names
are at most 10 characters and do not contain embedded blanks.
JOIN
joins the specified . This may be the first reference
to this person, or he or she may be unemployed. The person does not
currently belong to another company. Remember that when a person joins
a company.
CHANGE
quits his or her job and joins the specified new . You
may assume that the person is currently employed. This command does not
tell you the person's current employer; you have to search the data
structure to find the person.
QUIT
quits his or her job and becomes unemployed. You may assume
that the person is currently employed.
PAYDAY
Each person is paid his or her salary ($5000). (You must keep track of
the amount each person has earned from the start of the program).
EMPLOYEES
The current list of employees should be printed for the specified
. The employees must be printed in order of their name.
UNEMPLOYED
The list of unemployed people should be printed.
DUMP
Print the employees in each company, as specified under the EMPLOYEES
command above, then print the unemployed people. Label the output
appropriately.
Class: CS464 Software Design and Implementations
Subject: Homework - Career Tracking
END
Stop accepting commands.
OUTPUT
After all the commands have been processed, write a list of employees to a file "employee.txt".
The list consists of all the people who have been mentioned in any command and the total
amount of money they have been accumulated.
The following are some sample data"
file Company.txt
Borland
Microsoft
IBM
Intel
Compaq
NEC
Oracle
Commands from keyboard:
JOIN David IBM
JOIN Peter Intel
PAYDAY
CHANGE Peter Microsoft 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Your assignment is to track the corporate careers
Reference No:- TGS087251

Expected delivery within 24 Hours