Problem 1 DSA Documentation
Problem 1 DSA Documentation
Information Technology
Module 0 – MCO2
Introduction to JAVA in Preparation
to DATA STRUCTURE AND ALGORITHM
Submitted By:
Submitted To:
Salvador L. Flores Jr.
Assistant Professor II
I. Description and Program
This Java program demonstrates a simple student management system with basic
object-oriented programming principles.
The program consists of two classes: StudentManagement (main class) and Student (a
custom class representing student information)
Problem:
Create a Java program that simulates a student management system. The program should
allow the user to create a student object, display the student's initial details, update the
student's details, and then display the updated information.
Algorithm:
Start
Create a Student Object:
Declare a new object of the Student class.
Initialize the object's attributes:
name
rollNumber
grades (a list of integers)
Pseudocode:
START
Create a new Student object
Initialize student's name, roll number, and grades
Print student's details
Update student's name, roll number, and grades
Print student's updated details
END
Flow Chart:
Program Code:
import java.util.ArrayList;
import java.util.List;
student.printDetails();
student.printDetails();
}
}
class Student {
private String name;
private int rollNumber;
private List<Integer> grades;
Online
Meetings
A group