0% found this document useful (0 votes)
0 views5 pages

Class and Array of Object Java Assignment

The document outlines a Java assignment consisting of 50 programming tasks. Each task requires the creation of a specific class with defined attributes and the use of an array of objects to store and display details for multiple instances of that class. The classes cover a wide range of topics, including students, employees, products, vehicles, and various other entities.
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)
0 views5 pages

Class and Array of Object Java Assignment

The document outlines a Java assignment consisting of 50 programming tasks. Each task requires the creation of a specific class with defined attributes and the use of an array of objects to store and display details for multiple instances of that class. The classes cover a wide range of topics, including students, employees, products, vehicles, and various other entities.
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

CLASS and ARRAY OF OBJECT JAVA ASSIGNMENT

1. Write a Java program to create a Student class with attributes roll number, name,
and marks, and store details of multiple students using an array of objects.
2. Write a Java program to create an Employee class with attributes employee ID,
name, and salary, and display details of multiple employees using an array of
objects.
3. Write a Java program to create a Book class with attributes book ID, title, author,
and price, and display details of multiple books using an array of objects.
4. Write a Java program to create a Car class with attributes model name, color,
company, and price, and display details of multiple cars using an array of objects.
5. Write a Java program to create a Bike class with attributes brand, model, mileage,
and price, and display details of multiple bikes using an array of objects.
6. Write a Java program to create a Mobile class with attributes brand, model, RAM,
and price, and display details of multiple mobiles using an array of objects.
7. Write a Java program to create a Laptop class with attributes company, processor,
RAM, storage, and price, and display details of multiple laptops using an array of
objects.
8. Write a Java program to create a Rectangle class with attributes length and width,
and calculate the area of multiple rectangles using an array of objects.
9. Write a Java program to create a Circle class with attributes radius and color, and
calculate the area of multiple circles using an array of objects.
10. Write a Java program to create a BankAccount class with attributes account
number, account holder name, and balance, and display details of multiple
accounts using an array of objects.
11. Write a Java program to create a Product class with attributes product ID, product
name, quantity, and price, and display details of multiple products using an array
of objects.
12. Write a Java program to create a Customer class with attributes customer ID,
name, mobile number, and address, and display details of multiple customers
using an array of objects.

GADEKAR M.J. 1
13. Write a Java program to create a Patient class with attributes patient ID, name,
age, and disease, and display details of multiple patients using an array of objects.
14. Write a Java program to create a Doctor class with attributes doctor ID, name,
specialization, and salary, and display details of multiple doctors using an array of
objects.
15. Write a Java program to create a Teacher class with attributes teacher ID, name,
subject, and salary, and display details of multiple teachers using an array of
objects.
16. Write a Java program to create a School class with attributes school name,
address, principal name, and student strength, and display details of multiple
schools using an array of objects.
17. Write a Java program to create a College class with attributes college name,
course, location, and fees, and display details of multiple colleges using an array
of objects.
18. Write a Java program to create a LibraryBook class with attributes book ID, book
name, author, and issue status, and display details of multiple books using an
array of objects.
19. Write a Java program to create a HotelRoom class with attributes room number,
room type, customer name, and charges, and display details of multiple rooms
using an array of objects.
20. Write a Java program to create a Vehicle class with attributes vehicle number,
owner name, vehicle type, and price, and display details of multiple vehicles using
an array of objects.
21. Write a Java program to create a Movie class with attributes movie name, actor
name, director name, and rating, and display details of multiple movies using an
array of objects.
22. Write a Java program to create a CricketPlayer class with attributes player name,
age, team name, and runs, and display details of multiple players using an array of
objects.
23. Write a Java program to create a FootballPlayer class with attributes player name,
age, team name, and goals, and display details of multiple players using an array
of objects.

GADEKAR M.J. 2
24. Write a Java program to create a BankCustomer class with attributes customer
name, account number, account type, and balance, and display details of multiple
customers using an array of objects.
25. Write a Java program to create an Exam class with attributes student name,
subject name, marks, and grade, and display results of multiple students using an
array of objects.
26. Write a Java program to create a MobileShop class with attributes mobile name,
company, model number, and price, and display details of multiple mobiles using
an array of objects.
27. Write a Java program to create a Hospital class with attributes hospital name,
location, number of beds, and rating, and display details of multiple hospitals
using an array of objects.
28. Write a Java program to create a Flight class with attributes flight number, source,
destination, and ticket price, and display details of multiple flights using an array
of objects.
29. Write a Java program to create a Train class with attributes train number, train
name, source, and destination, and display details of multiple trains using an array
of objects.
30. Write a Java program to create a Bus class with attributes bus number, route,
driver name, and ticket price, and display details of multiple buses using an array
of objects.
31. Write a Java program to create a StudentResult class with attributes roll number,
name, total marks, and percentage, and find the topper using an array of objects.
32. Write a Java program to create a EmployeeSalary class with attributes employee
ID, name, basic salary, and bonus, and calculate total salary using an array of
objects.
33. Write a Java program to create a ShoppingCart class with attributes item name,
quantity, price, and total amount, and display multiple items using an array of
objects.
34. Write a Java program to create a BankTransaction class with attributes transaction
ID, account number, amount, and type, and display multiple transactions using an
array of objects.

GADEKAR M.J. 3
35. Write a Java program to create a PatientRecord class with attributes patient name,
age, disease, and doctor name, and display multiple records using an array of
objects.
36. Write a Java program to create a EmployeeAttendance class with attributes
employee ID, name, total days, and present days, and display attendance details
using an array of objects.
37. Write a Java program to create a HotelCustomer class with attributes customer
name, room number, days stayed, and bill amount, and display details of multiple
customers using an array of objects.
38. Write a Java program to create a Ticket class with attributes ticket number,
passenger name, destination, and price, and display multiple tickets using an array
of objects.
39. Write a Java program to create a FlightReservation class with attributes passenger
name, flight number, seat number, and ticket price, and display multiple
reservations using an array of objects.
40. Write a Java program to create a LibraryMember class with attributes member ID,
name, phone number, and issued books, and display multiple members using an
array of objects.
41. Write a Java program to create a Course class with attributes course ID, course
name, duration, and fees, and display multiple courses using an array of objects.
42. Write a Java program to create a Department class with attributes department
name, head name, number of employees, and location, and display multiple
departments using an array of objects.
43. Write a Java program to create a Company class with attributes company name,
location, employee count, and revenue, and display multiple companies using an
array of objects.
44. Write a Java program to create a FoodItem class with attributes item name,
category, quantity, and price, and display multiple food items using an array of
objects.
45. Write a Java program to create a Restaurant class with attributes restaurant name,
location, food type, and rating, and display multiple restaurants using an array of
objects.

GADEKAR M.J. 4
46. Write a Java program to create a Game class with attributes game name, type,
players, and rating, and display multiple games using an array of objects.
47. Write a Java program to create a LaptopStore class with attributes laptop name,
brand, processor, and price, and display multiple laptops using an array of objects.
48. Write a Java program to create a RealEstate class with attributes property ID,
location, area, and price, and display multiple properties using an array of objects.
49. Write a Java program to create a CarRental class with attributes car ID, car model,
rent per day, and availability, and display multiple cars using an array of objects.
50. Write a Java program to create a StudentLibrary class with attributes student ID,
name, book name, and return date, and display multiple records using an array of
objects.

GADEKAR M.J. 5

You might also like