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

You might also like