subject

Write a program that tracks all the employees of a company. Employees are being promoted and demoted, and, of course, getting paid. 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).Employees 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 * $2000.InputFrom the keyboard: Commands, as listed below, accept names of at most l0 characters and do not contain embedded blanks. Command Processing JOIN joins the company. This may be the first reference to this person. 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. 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. If the person has lowest rank within the company, no change occurs. SALARY Displays the list of employees and the salary paid to each employee. Each person is paid his or her salary as specified here. (You must keep track of the amount each person in the company. Salary is based on current rank of the employee. Employee's salary is Rank *$2000) EMPLOYEES The current list of employees should be printed for the ompany. The employees must be printed in order of rank; either top to bottom or bottom to top is appropriate. END Stop accepting commands. Output (to screen and file "employ. txt") 1. Echo print all commands, and print out a message that indicates what action has been taken. (For the EMPLOYEES , 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 employees and their ranks and salary information. Data Structures The list of employees for each company should be implemented either using the appropriate List ADT from this chapter or built in libraries.
Deliverables
♦ Upload all files used including any classes
♦ Upload screenshot of the output screen from the test runs
♦ Upload employ. txt

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Describe in pseudocode an algorithm that given an integer n and a linked list of elements increases the linked list by a factor of n by replacing each element in the original list with n copies of that element. for example, if l: [18, 7, 4, 24, 11] and n = 3 the resulting list should be l: [18, 18, 18, 7, 7, 7, 4, 4, 4, 24, 24, 24, 11, 11, 11]. if the value of n is less than or equal to 0, the list should be empty after the call. what’s the running time of your algorithm?
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
You know the right answer?
Write a program that tracks all the employees of a company. Employees are being promoted and demoted...
Questions
question
Mathematics, 02.06.2021 21:00
question
Mathematics, 02.06.2021 21:00
question
Mathematics, 02.06.2021 21:00
question
Mathematics, 02.06.2021 21:00
Questions on the website: 13722363