Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Can be menu driven instead of command lines.
Must be read from a data file
No joption or text box just simple printing
5 companies instead of 20
please use simple and not advanced programming skills.
Data files:
Microsoft:
5 Sidney
4 Tim
3 Dale
2 Phillip
1 Clinton
Yahoo:
5 Mary
4 Bob
3 Roger
2 Steve
1 Niles
Linux:
5 Robert
4 Oliver
3 Alice
2 Owen
1 Tammy
IBM:
5 Joe
4 Sally
3 Bill
2 Tina
1 Rickey
Google:
5 Gill
4 Erica
3 Wallice
2 James
1 Brenson
Executives within a company are ordered according to a seniority system and are numbered from 1 to N (the number of people in the company) to indicate their rank: 1 is the lowest rank and N is the highest. A new employee always enters at the bottom of the ladder
and hence always starts with a rank of 1. When a new person joins a company, the rank of everyone in the company is increased by one, and when an employee quits, the rank of employees above him or her in that company is decreased by one. Promotions can also occur and affect the ranks in the obvious way.
Naturally, salaries are based on rank. An employee's salary is Rank * $1000.
Unemployed people draw $50 in unemployment compensation.
Input
l. From file "company": The company names are listed one per line. There are at most 20 companies. Company names are at most l0 characters and do not contain embedded blanks.
2. From the keyboard: Commands, as listed below. and  names are at most l0 characters and do not contain embedded blanks.
Command Processing
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 he or she always starts at the bottom.
QUIT quits his or her job and becomes
unemployed. You may assume that the person is
currently employed.
CHANGE quits his or her job and joins the specified
new . You may assume that the person is
currently employed.
PROMOTE is moved up one step in the current company,
ahead of his or her immediate superior. If the person
has highest rank within the company, no change
occurs.
DEMOTE is moved one step down in the current
company, below his or her immediate subordinate. I f
the person has lowest rank within the company, no
change occurs.
PAYDAY Each person is paid his or her salary as specified here.
(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 rank; either top to bottom or bottom to top is
appropriate.
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.
END Stop accepting commands.
Note that the CHANGE, PROMOTE, and DEMOTE commands do not tell you the person's
current employer; you have to search the data structure to find the person.
Some sample data are in files "company" and "script" (for keyboard).Output (to screen and file "employ.out")
l. Echo print all commands, and print out a message that indicates what action has been
taken. (For the EMPLOYEES and UNEMPLOYED commands, print out the information
specified in the Input section.)
2. After all the commands have been processed, print out one list consisting of all the
people who have been mentioned in any command and the total amount of money they have
accumulated.
Data Structures
The list of employees for each company should be implemented using the appropriate List
ADT from this chapter.
Deliverables
• Program design and CRC cards for all classes
• A listing of your program including any classes used
• A listing of your test plan as input to the program
• A listing of the output file from the test runs
• A listing of employ.out
(This programming assignment was developed from an idea by Jim Bitner.)  

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M980391

Have any Question?


Related Questions in Computer Engineering

Question suppose you are developing a program that

Question : Suppose you are developing a program that frequently tests whether a student is in a soccer team, what is the best data structure to store the students in a soccer team? Justify your answer.

Language is cgenerate a sparse vector class with operator

Language is C++ Generate a sparse vector class with * operator, such as Vector Vector::operator * (Vector& param) A multiplication (*) operators returns element-wise multiplication of two vectors in another vector. Given ...

Question research and provide a write up on available

Question : Research and provide a write up on available routers and switches. The report should include information for at least two router and two switching devices. Included in the write-up should be a description of t ...

What is the name of the text file on a windows computer

What is the name of the text file on a Windows computer that may store DNS to IP address mappings?

Any help will be appreciatedscenarionbspyou are a

Any help will be appreciated Scenario: You are a networking and communications consultant working for HoustonComm Services, Inc, further referred to as HCS. HCS is a company providing technology consulting services to st ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

Question what is an information system what are the

Question: What is an information system? What are the business benefits of information management? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Take the input of numbers and reverse the order of elements

Take the input of numbers and reverse the order of elements in that vector using recursion.

Please discuss the followingas demand increased for these

Please discuss the following: As demand increased for these mortgage backed securities, lenders reacted by relaxing their approval standards to increase production. No longer were "all" borrowers required to document the ...

According to the same national collegiate athletic

According to the same National Collegiate Athletic Association data, the means and standard deviations of eligibility and retention rates (based on a 1,000-point scale) for the 2013-2014 academic year are presented, alon ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As