2. Repeat the display of a menu of 4 services, perform the required task according to the user’s choice and asks the user whether he/she wants to repeat or no. You need to choose one service from each category (‘A’,’B’,’C’,’D’) a. A. Display the total number of employees that were infected b. B. Display the number of employees above certain age that were infected c. B. Display the number of employees under certain age that were infected d. B. Display the number of employees that have expired their leaves e. A. Display the average age of infected person f. C. Display the age of the youngest person g. C. Display the age of the oldest person h. D. Search an employee by code and display all his/her details i. D. Search an employee by name and display all his/her details Use Java program

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

2. Repeat the display of a menu of 4 services, perform the required task according to the user’s
choice and asks the user whether he/she wants to repeat or no. You need to choose one service
from each category (‘A’,’B’,’C’,’D’)
a. A. Display the total number of employees that were infected
b. B. Display the number of employees above certain age that were infected
c. B. Display the number of employees under certain age that were infected
d. B. Display the number of employees that have expired their leaves
e. A. Display the average age of infected person
f. C. Display the age of the youngest person
g. C. Display the age of the oldest person
h. D. Search an employee by code and display all his/her details
i. D. Search an employee by name and display all his/her details

Use Java program

Below is an example of execution:
Initialization
Enter the total number of employees
2
**Employee 1***
Enter the code of the employee
101
Enter the name of the employee
Ahmed
Enter the age of the employee
5
Enter True if the employee was infected with COVID19
True
Enter the number of leave days of the employee
30
Transcribed Image Text:Below is an example of execution: Initialization Enter the total number of employees 2 **Employee 1*** Enter the code of the employee 101 Enter the name of the employee Ahmed Enter the age of the employee 5 Enter True if the employee was infected with COVID19 True Enter the number of leave days of the employee 30
*******Employee 2*****
Enter the code of the employee
102
Enter the name of the employee
Amal
Enter the age of the employee
30
Enter True if the employee was infected with COVID19
True
Enter the number of leave days of the employee
30
******Menu of services********
A. Display the total number of employees that were infected
B. Display the number of employees above certain age that were infected
c. Display the age of the oldest person
D. Search an employee by code and display all his/her details
Enter your choice
***
1. Total number of employees that were infected:2
Do you want to repeat. Press 'Y' or 'y'
y
******Menu of services*******
A. Display the total number of employees that were infected
B. Display the number of employees above certain age that were infected
c. Display the age of the oldest person
D. Search an employee by code and display all his/her details
Enter your choice
B
Enter the age
50
2. The number of employees above certain age that were infected:1
Do you want to repeat. Press 'Y' or 'y'
y
******Menu of services********
A. Display the total number of employees that were infected
B. Display the number of employees above certain age that were infected
c. Display the age of the oldest person
. Search an employee by code and display all his/her details
Enter your choice
The age of the oldest person: 55
Do you want to repeat. Press 'Y' or 'y'
Y
Transcribed Image Text:*******Employee 2***** Enter the code of the employee 102 Enter the name of the employee Amal Enter the age of the employee 30 Enter True if the employee was infected with COVID19 True Enter the number of leave days of the employee 30 ******Menu of services******** A. Display the total number of employees that were infected B. Display the number of employees above certain age that were infected c. Display the age of the oldest person D. Search an employee by code and display all his/her details Enter your choice *** 1. Total number of employees that were infected:2 Do you want to repeat. Press 'Y' or 'y' y ******Menu of services******* A. Display the total number of employees that were infected B. Display the number of employees above certain age that were infected c. Display the age of the oldest person D. Search an employee by code and display all his/her details Enter your choice B Enter the age 50 2. The number of employees above certain age that were infected:1 Do you want to repeat. Press 'Y' or 'y' y ******Menu of services******** A. Display the total number of employees that were infected B. Display the number of employees above certain age that were infected c. Display the age of the oldest person . Search an employee by code and display all his/her details Enter your choice The age of the oldest person: 55 Do you want to repeat. Press 'Y' or 'y' Y
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY