0% found this document useful (0 votes)
5 views2 pages

OOP Using Java Program

The document lists a series of programming tasks focused on Object-Oriented Programming (OOP) using Java. It includes exercises for creating classes, accepting user input, and performing calculations such as displaying prime numbers, calculating area, and managing data for various entities like bank customers and employees. The tasks emphasize core OOP concepts such as class declaration, object instantiation, and inheritance.

Uploaded by

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

OOP Using Java Program

The document lists a series of programming tasks focused on Object-Oriented Programming (OOP) using Java. It includes exercises for creating classes, accepting user input, and performing calculations such as displaying prime numbers, calculating area, and managing data for various entities like bank customers and employees. The tasks emphasize core OOP concepts such as class declaration, object instantiation, and inheritance.

Uploaded by

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

OOP using Java

IA-1 Program list


1) Write a program to display prime numbers between 1 to 50.
2) Write a program to display reverse number of entered number.
3) Write a program to declare a class bank having data members as cust_name
and ID. Accept this data for five objects & it.
4) write a program to declare a class book having data members name and
price. Accept this data for one object & display
5) write a program to declare a class rectangle having data members length and
breadth. Accept value calculate area & display
6) write a program to declare a class employee having data members as empid
,name and salary. Accept this data for two object & display it.
7) write a program to declare a class item having data members as code and
price. Accept this data for five object & display total price of all items.
8) Write a program to declare a class staff having data members as name and
post. Accept this data for five object & display name of staff who is HOD.
9) write a program to declare a class tender having data members as company
name and cost. Accept this data for five object & display for which cost is
minimum.
10) Write a program to accept a value of apple sale for each day of week
& then calculate the average sale of week.
11) Define class student having data members as name,roll_ no & marks in
Test1,[Link] object using constructor & display total percentage of
student.
12) Write a program to accept principal amount, rate of interest, number of years
from user and display the simple interest.
13) write a program to accept as many as integer as user wants in vector, delete
specific element & display remaining list
14) Write a program to implement following

Class:Person

Name,age

Class:Employee

Emp_designation,salary
15) Write a program to implement following

Class:Square

Length,area()

Class:Rectangle

Bredth,rectArea()

Class:Box

Height,Volume()

16) Implement following Hierarchical Inheritance:

You might also like