Computer Science, asked by mohdAlnashi, 6 hours ago

Assume an example of a department in a company with six staff members (2 Mangers and 4 employees). The staff members are ranked from 1 to 3 where 1 mean the lowest rank and 3 mean the highest rank, respectively. The names of the Mangers with their ranks are John (3) and Kevin (3). The names of the employees with their ranks are Eric (2), Noah (1), Oliver (1), and Benny (2).

For each of the following cases write an ASN.1 description for record values with appropriate data types. Start with data type Staff Data, containing information about each member.

a. An alphabetical list of staff
b. A sorted list of staff with decreasing rank
c. Two groups of staff one for manger with high rank and one for employees with low rank only

Answers

Answered by ahujasuri30
0

Answer:

FF of this one

Answered by ParvezShere
0

Given:

Details of six staff members of a company.

To Find:

  1. An alphabetical list of staff.
  2. A sorted list of staff with decreasing rank.
  3. Two groups of staff, one for managers with high rank and one for employees with low rank only.

Solution:

According to the question,

Part-1

The alphabetical list of staff members is as follows-

  1. Benny(2)
  2. Eric(2)
  3. John(3)
  4. Kevin(3)
  5. Noah(1)
  6. Oliver(1)

Part-2

The sorted list of staff with decreasing rank order is as follows-

  1. John((3)
  2. Kevin(3)
  3. Benny(2)
  4. Eric(2)
  5. Noah(1)
  6. Oliver(1)

The ranks decrease from 3 to 1 as per the question.

Part-3

Group-1

This group contains managers of high rank.

  1. John
  2. Kevin

Group-2

This group contains employees with low ranks only.

  1. Noah
  2. Oliver.

Hence, all the parts of the question could simply be solved and sorted if we read the question carefully and understand how the ranking orders are done.

Similar questions