You are on page 1of 3

Lab Assessment - 3

Slot :L19+L20 Date: 30/09/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. Calculate the grade of a student:

Get the regno from the student. Where the regno should start with first two digits,
then followed by the course name as BIT or BCE , with last four digit as numbers. If
the regno is not valid, create an userdefined exception as "invalid regno".

Enter marks for minimum 5 subjects. While entering marks if the mark is negative
throw NegativeMarkException and if the mark is greater than 100 throw
outofRangeException.

2. IRCTC booking

Generally we know that there is a ticket consession for the senior citizen(10%)
and with the children(12%), age less than 10. Give an estimation to a family of
four people with three adult, where one person is a senior citizen and a child of
8 years. They wanted to have a visit to some of the places of India from the
following places. Create an userdefined exception to say a family that they have
got a "concession amount of XXX applied" for a family with Senior citizen and
a children. If the family without any senior citizen , give an estimate to them
with the amount of travel for various places. Get the input from the user as
number of person, dob of each person with their names.

Train no From To 1AC 2AC SL


T1001 Chennai Delhi 4895 3723 2576
T1002 Chennai Mumbai 4327 3967 3100
T1003 Chennai Kolkata 5289 2896 3865

****************************************************************
REGISTER Fculty Marks /
NO NAME  Q.no incharge remarks
19BIT016 Senthil
7 J UDAY KIRAN 1
19BIT023 THUTUPALLI Senthil
8 SHANMUKHAVAMSIKRISHNA 2
20BIT004 Senthil
8 KARAN GUPTA 1
20BIT007 Senthil
8 UDBHAV SHARMA 2
20BIT012 Senthil
5 AAZIM AJMAL SHAUKATHALI P 1
20BIT014 Senthil
8 NISHANT MISHRA 2
20BIT016 MOTURU VENKATA NIKITH Senthil
3 CHOWDARY 1
20BIT020 Senthil
3 RISHIDEEP SINGH RATHORE 2
20BIT021 Senthil
0 SHRADDHA SUMAN 1
20BIT021 Senthil
2 TISHA ANIL CHORDIA 2
20BIT022 Senthil
6 KUNCHAKURI RITHESH 1
20BIT022 Senthil
7 TARUNIKA AGARWAL 2
20BIT023 Senthil
8 CHAVAN MUKUL MANISH 1
20BIT024 Senthil
5 AADITYA KUMRA 2
20BIT025 Senthil
9 AKSHAT KHANDELWAL 1
20BIT026 Senthil
1 RUSHIL SAINI 2
20BIT026 Senthil
2 ESHAN GUPTA 1
20BIT027 NIMISH JAIN 2 Anitha
0
20BIT028 Anitha
0 SIDDHANT ANCHAL 1
20BIT029 Anitha
2 UDITH SHYAMSUKHA 2
20BIT030 Anitha
1 DEVIKA VARSHNEY 1
20BIT034 Anitha
2 VINEET JAIN 2
20BIT034 Anitha
9 ADITYA RANJAN 1
20BIT035 Anitha
4 MADABHUSHI PRIYA SAAKETH 2
20BIT037 Anitha
4 TRISHIT DEVENDER GUPTA 1
20BIT038 Anitha
4 SHIVAM SINGH 2
20BIT038 Anitha
9 SALONI AGARWAL 1
20BIT039 Anitha
6 CHUNDURI ATIRATH 2
20BIT042 Anitha
7 AKSHIT NEGI 1
20BIT042 Anitha
8 SANYAM JAIN 2
20BIT043 Anitha
1 SRIHARINI PADMANABHAN 1
20BIT043 Anitha
6 VARUN BHATTACHARYA 2
20BIT043 Anitha
9 ATHARV KOTHARI 1
20BIT044 Anitha
7 HARSHIT GUPTA 2
20BIT044 Anitha
8 MASTER MUSKAN 1
 

You might also like