Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Lab Assessment - 4

Slot :L19+L20 Date: 11/11/2021

Time : 8.00 -9. 30 Prof incharge - Dr. A. Anitha


_____________________________________________________________________

General Instructions

The students allotted with the question number is available at the


end of the document.
1. Write your Name, Regno, Course code, Course Title, Slot on the top of the word
document.

2. Copy the allotted question along with the question number and paste on the word
document, which you are about to submit.

3. Compile both the source (.java) program and (output) files in the same word
document and make it as a single PDF file and upload as a single program. The
program should be followed by its output.

Please follow the deadline and the time. ie. The students have to upload their pdf
before their Lab session or can take at the maximum five minutes after the Lab
session gets over. The Assessment cannot be submitted after the deadline. The Vtop
doesn’t have the option for late submission, so if the student fails to submit the
assignment, the mark for the assignment will be provided as ZERO.

1. Collection Classes
Create a Collection framework to store the name of the patient and their id key-value
pair registered for a particular doctor for kidney cancer as the initial list. After
treatment, list out the number of patients discharged and the number of patients
enrolled as new patient for the specified doctor with their corresponding patient id.
Print the number of patients added or removed as separate set to identify the total
number of patients getting treatment for a period of two years.

Ex: Initial set = {(15XXX0001, AAA),(15XXX0002, BBB),(17XXX0003,


CCC),(18XXX0045,DDD).......}- 5 patients

After treatment ={{(15XXX0001, AAA),(15XXX0002, BBB), (14XXX00034,


AAA),(16XXX0002, FFF), (18XXX0045,DDD).......} - 6 patients

Enrolled Id: (14XXX00034, AAA),(16XXX0002, FFF) - 2 patients


Discharge Id: (17XXX0003, CCC) - 1 patient
All 6 patients details to be displayed.

2. Lambda Expression
Write a java program to find the employee with the second lowest salary from
the given names and salaries of each employees using lists and lambda. Input
number of employees, names and salary of each employee.

****************************************************************
REGISTER Fculty Marks /
NO NAME Q.no incharge remarks
19BIT0167 J UDAY KIRAN 1 Anitha
THUTUPALLI Anitha
19BIT0238 SHANMUKHAVAMSIKRISHNA 2
20BIT0048 KARAN GUPTA 1 Anitha
20BIT0078 UDBHAV SHARMA 2 Anitha
AAZIM AJMAL Anitha
20BIT0125 SHAUKATHALI P 1
20BIT0148 NISHANT MISHRA 2 Anitha
MOTURU VENKATA NIKITH Anitha
20BIT0163 CHOWDARY 1
20BIT0203 RISHIDEEP SINGH RATHORE 2 Anitha
20BIT0210 SHRADDHA SUMAN 1 Anitha
20BIT0212 TISHA ANIL CHORDIA 2 Anitha
20BIT0226 KUNCHAKURI RITHESH 1 Anitha
20BIT0227 TARUNIKA AGARWAL 2 Anitha
20BIT0238 CHAVAN MUKUL MANISH 1 Anitha
20BIT0245 AADITYA KUMRA 2 Anitha
20BIT0259 AKSHAT KHANDELWAL 1 Anitha
20BIT0261 RUSHIL SAINI 2 Anitha
20BIT0262 ESHAN GUPTA 1 Anitha
Senthil
20BIT0270 NIMISH JAIN 2
Senthil
20BIT0280 SIDDHANT ANCHAL 1
Senthil
20BIT0292 UDITH SHYAMSUKHA 2
Senthil
20BIT0301 DEVIKA VARSHNEY 1
Senthil
20BIT0342 VINEET JAIN 2
Senthil
20BIT0349 ADITYA RANJAN 1
MADABHUSHI PRIYA Senthil
20BIT0354 SAAKETH 2
Senthil
20BIT0374 TRISHIT DEVENDER GUPTA 1
Senthil
20BIT0384 SHIVAM SINGH 2
Senthil
20BIT0389 SALONI AGARWAL 1
Senthil
20BIT0396 CHUNDURI ATIRATH 2
Senthil
20BIT0427 AKSHIT NEGI 1
Senthil
20BIT0428 SANYAM JAIN 2
Senthil
20BIT0431 SRIHARINI PADMANABHAN 1
Senthil
20BIT0436 VARUN BHATTACHARYA 2
Senthil
20BIT0439 ATHARV KOTHARI 1
Senthil
20BIT0447 HARSHIT GUPTA 2
Senthil
20BIT0448 MASTER MUSKAN 1

You might also like