0% found this document useful (0 votes)
13 views

Part 1: Object Oriented Programming

The document discusses requirements for developing two object-oriented programs. The first program manages students using a Student class and methods for inputting, printing, updating averages, and sorting students. The second program manages employees using inheritance with classes for Employee and subclasses, and methods for inputting, printing, and calculating total salary.

Uploaded by

Trần Toàn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Part 1: Object Oriented Programming

The document discusses requirements for developing two object-oriented programs. The first program manages students using a Student class and methods for inputting, printing, updating averages, and sorting students. The second program manages employees using inheritance with classes for Employee and subclasses, and methods for inputting, printing, and calculating total salary.

Uploaded by

Trần Toàn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Part 1: Object Oriented Programming

ABC school is an IT schools, they want to implement a system to manage their students.
You are a member of developer team who are responsive develop this system with below
requirements:

1. Create a Student class to describe students with properties:


- StudentID: int
- StudentName: String
- Batch: String
- Mark1: double
- Mark2: double
- AvgMark: double

Write a set and get method for each property.

The AvgMark will be calculated from Mark1 and Mark2 so you don’t enter value for this
field.

2. Create a method to permit a user enter a list of students and stores them in an array
list.
3. Write a method to print the list of student from array list you just entered above.
4. Write a program to method to update AvgMark for students. (AvgMark = (Mark1 +
Mark2)/2
5. Write a method sort a this list by average student then print it to screen.
6. Setup a menu to user can select command to call the functions of this application.
Part 2: Object Oriented Programming - Inheritance
BK is an IT companies, they want to implement a system to manage their employees. You
are a member of developer team who are responsive develop this system with below
requirements:

1. Create two classes to describe like figure 2.1:

2. Create a method to permit a user enter a list of employees and stores them in an
array list.
3. Write a method to print the list of employees from array list you just entered above.
4. Write a program to method to calculate total amount which company must be paid
for salary for all employees per month.
5. Setup a menu to user can select command to call the functions of this application.

You might also like