You are on page 1of 2

Maximum marks for Assignment– 50

Mode of submission – Online


Roll Number is assigned to the question you have to do.

Q1: Write a java program to implement “Student Management System”. In which you have to
include at least three from the given topics as required: Inheritance, Overriding Methods,
Polymorphism, Abstract Classes, Nested Classes, Interfaces, Lambda Expressions, Exceptional
Handling and I/O Fundamentals. Avoid copying from given solution on website. Try to implement
using the concept covered in the class. Solution must be unique for each student.
Roll Number: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

Q2: Write a program to define two interfaces UGC and AICTE both having a default method

int getAdmission() to take the admission and an abstract method String payFee().getAdmission() in
UGC must ask the percentage in qualifying exam and if the percentage >= 60 then generate the
registration number and return.getAdmission() is AICTE must ask the user to join the counseling
after 5 days and display the date of counseling and return the counseling token number.

Create a class University which inherits both UGC and AICTE and overrides the getAdmission()
method only such that it will ask the percentage and if direct admission through UGC is possible then
proceed otherwise proceed through AICTE.University must have attribute fee_due and it should be
assigned the due amount accordingly.(E.g fee through UGC is 25000 & fee through AICTE is 34000)

Create a class LPU which inherits University and overrides all the methods. Ask the user to deposit
the fee and display the fee due. After depositing the fee display the remaining due fee and return
the receipt number. Avoid copying from given solution on website. Solution must be unique for
each student.

Roll Number: 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24

Q3: Write a Health Care Application in which use an enum to store the available doctors with
attributes name, consultation fee and specialization. Ask the user to enter the patient_name, age
and create a patient id automatically. Now display the details of all the available doctors and ask the
user to select the doctor. Now display the Appointment slip for the patient that includes Patient
details, Patient Id and details of the Doctor along with the fee to be paid. Store all the details of the
Patient in an Array of Objects and implement a function to display the details of the patient with a
given patient id. Avoid copying from given solution on website. Solution must be unique for each
student.

Roll Number: 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36

Q 4: Write a java program to implement “Home Budget Management”. In which you have to
include at least three from the given topics as required: Inheritance, Overriding Methods,
Polymorphism, Abstract Classes, Nested Classes, Interfaces, Lambda Expressions, Exceptional
Handling and I/O Fundamentals. Avoid copying from given solution on website. Try to implement
using the concept covered in the class. Solution must be unique for each student.
Roll Number: 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48

Q 5: Write an application for placement office such that the Student objects can be stored in an
array. Student contains attributes name, registration number, cgpa, course (B. Tech/MBA/M Tech)
and placement status(true/false). Use appropriate constructor for the Student class. Now implement
a method which takes the minimum cgpa and eligible course as an argument and returns the
number of eligible students for that placement drive. Method must display the details of all the
Students who are eligible (i.e. having cgpa greater than the argument one, belong to the same
course as required and are not placed.)

In main, Read the cgpa and course from the command line argument and display the eligible
students. Avoid copying from given solution on website. Try to implement using the concept
covered in the class. Solution must be unique for each student.

Roll Number: 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60

Q 6: Write an application for a Tour & Travel agency which provides some tour packages which
includes the details of Location, Price, Number of Nights and Hotel Category. Ask the user to choose
the location and display the available packages. Ask the user to choose the package and display the
details of the selected package. After selecting a particular package ask the user to customize the
package. User can update the number of days and/or hotel category. Provide the rates for different
hotel categories and increased number of nights. Display the Price after the chosen customization by
the user. After customization, display the final package of the student.

E.g. Manali 3 Nights/4days *** Rs 2999

Goa 4 Nights/5 Days *** Rs 4999

Customization: Rs 1000/Night Hotel **** Rs 750 additional Hotel ***** Rs


1500 additional.

Avoid copying from given solution on website. Try to implement using the concept covered in the
class. Solution must be unique for each student.

Roll Number: 61, 62, 63, 64, 65, 66, 67, 74, 76

You might also like