0% found this document useful (0 votes)
6 views3 pages

Object-Oriented Programming Programs List

The document lists various object-oriented programming tasks and their completion status for two groups, X and Y. Each task includes a description of the program to be written, such as checking if a number is even or odd, implementing inheritance, and creating a vehicle management system. The completion dates for each task are also provided, indicating when the tasks were done or are due.

Uploaded by

arkab383
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Object-Oriented Programming Programs List

The document lists various object-oriented programming tasks and their completion status for two groups, X and Y. Each task includes a description of the program to be written, such as checking if a number is even or odd, implementing inheritance, and creating a vehicle management system. The completion dates for each task are also provided, indicating when the tasks were done or are due.

Uploaded by

arkab383
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

List of programs in object-oriented programming

Lab student copy program


Sl no Program Group X Group Y
1 Write a program to check whether a number is even or odd Done Done
16.07.2025 16.07.2025

2 Calculate the factorial of a number given by the console

3 Write a program to take two numbers from the console and print
which one is greater.

4 Write a Java program to read a student's name, roll number, address, Done Done
and marks in three subjects from the console. Calculate the total 25.07.25 23.07.2025
marks and display the student's full details, including name, roll
number, address, marks in all three subjects, and the total marks.
5 Write a program to implement all constructors, where four inputs Done Done
will be taken: employee_id, employee_name, salary, and designation. 25.07.25 30.07.25
6 Write a program to implement an abstract class where the user will 01.08.25 Done
take the length and width of a rectangle and the radius of a circle in Done 30.07.25
two different classes and print their area.
7 Write a program to take the coefficients a and b in one class, and the 01.08.25 Done
coefficient c in another class, where the root of the quadratic Done 30.07.25
equation will be calculated and printed using inheritance.
8 Create a Java program using interface, implements, and extends to Done Done
simulate a cybersecurity login system. Define an AccessControl 06.08.25 06.08.25
interface with login and perform SecurityCheck methods. Create a (Taking both
base class User for storing username and role, and an Admin class groups. Amit
that extends User and implements AccessControl. Use console input absent)
for username and password, verify the password (e.g., "admin123"),
and display user info with a mock security check on successful login.
9 Write a Java program that demonstrates the use of the final Done Done
keyword by incorporating a base class with a final method that 06.08.25 06.08.25
cannot be overridden, and a subclass declared as a final class to (Taking both
prevent further inheritance. The program should also include a groups. Amit
final variable, such as a student ID, which must be initialized either absent)
during declaration or through the constructor and cannot be
modified afterward. Use the Scanner class to take user input from
the console for details like the student’s name and age, and then
display these details along with the constant student ID.
10 Write a program in Java to implement single inheritance for an Done Done
Employee Management System. The base class Employee should 08.08.25 13.08.25
include attributes like employee name, ID, and salary. The derived
class Manager should extend Employee and include an additional
field for department name. Add methods to display details of both
employee and manager. Use constructors for proper initialization and
apply access specifiers to ensure secure and flexible code design.
11 Write a program in Java to demonstrate multilevel inheritance Done Done
for a Secure Vehicle Registration System. Create a base class 08.08.25 13.08.25
Vehicle with basic registration details. Derive a class Car from
Vehicle to include car-specific attributes like model and
manufacturer. Then, extend it further with a class ElectricCar
that includes battery capacity and charging status. Use
constructors and access modifiers to manage data securely, and
include methods to display all the details of an electric car.

12 Write Java classes to represent Course and CollegeAdmin, Done Done


utilizing Vector to store student names and/manage courses. 22.08.2025 27.08.2025
Include methods to add courses, enroll students, and display
enrolled students for any specific course. Write a main method
to demonstrate each operation with at least two courses and
sample enrollments.
13 A library system needs to manage its collection of books. Each Done Done
book has an ISBN, title, and author. The library wants to add 22.08.2025 27.08.2025
books to its collection, search for a book by ISBN, and display
all books currently available. Write a Java vector program to
solve the given task.
14 Write a Java program where one thread prints numbers from 1 to
5 and another thread prints numbers from 6 to 10. 29.08.2025 03.09.2025
15 Write a Java program where three threads print a message
"Hello from Thread-X" five times each. 29.08.2025 03.09.2025
16 Write a Java swing program that accepts employee details such 12.09.2025 08.10.25
as Employee ID, Name, Address, and Basic Salary. The
program should calculate:

 DA (Dearness Allowance) as 90% of the Basic Salary


 HRA (House Rent Allowance) as 10% of the Basic
Salary
 Net Salary = Basic + DA + HRA

Finally, the program should display the employee’s Name,


Address, Basic Salary, DA, HRA, and Net Salary using labels.

17 Write a program to take student name, roll, address, three 19.09.2025 08.10.25
subjects name and their marks. Create a linked list to insert
students and print their details.
18 Write a Java swing program that accepts employee details such 19.09.2025 08.10.25
as Employee ID, Name, Address, and Basic Salary. The
program should calculate:

 DA (Dearness Allowance) as 90% of the Basic Salary


 HRA (House Rent Allowance) as 10% of the Basic
Salary
 Net Salary = Basic + DA + HRA

Finally, the program should display the employee’s Name,


Address, Basic Salary, DA, HRA, and Net Salary using labels.

Here, data will be taken with linked list.


19 Write a program to take input of two numbers form console and 10.10.25 15.10.25
generate calculator as addition, subtraction, multiplication,
division using multiple inheritance.
20 Write a program to take the sides of the triangle and check 10.10.25 15.10.25
whether the triangle generation is possible or not using abstract
class
21 Design a Java program for a Vehicle Management System 12.11.2025
using inheritance.

 Create an abstract class Vehicle with:


o Data members: brand, model, price
o Abstract method: calculateTax()
o Concrete method: displayDetails()
 Create a subclass Car that extends Vehicle and adds:
o Data member: seatingCapacity
o Overrides calculateTax() such that:
 If price > 10,00,000, tax = 15% of
price
 Else tax = 10% of price
 Create another subclass Bike that extends Vehicle and
adds:
o Data member: engineCC
o Overrides calculateTax() such that:
 If engineCC > 150, tax = 8% of price
 Else tax = 5% of price
 In the main() method, create objects of both Car and
Bike, display their details, and print the calculated tax.

You might also like