I do the class but there are some codes I need to help me please :
-Write a number of member functions that do the following:
•Calculate the student GPA
•Search for the highest mark taken in a particular course
•Print the ID, first name, and last name of all the students who have already taken a particular course
•Print the course code, course title, course mark, course grade of all courses taken by a particular student
-Write a main program that does the following:
•Define an array of objects of each one of the above three classes
•Assign data to the objects that you defined. This data should be stored and read from 3 different files
•Read a student ID
•Print a list of all courses taken by that student
•Calculate the GPA of that student
•Read a course code
•Print the ID, first name, and last name of all the students who have taken that course
•Search for the highest mark taken in that course
•Print the ID, first name, and last name of the student who scored that highest mark in that course

-StudentType

public class StudentType {

    private int studentId;

    private String firstName;

    private String lastName;

    private String major;

    public StudentType(int studentId, String firstName, String lastName, String major) {

        super();

        this.studentId = studentId;

        this.firstName = firstName;

        this.lastName = lastName;

        this.major = major;

    }

    public int getStudentId() {

        return studentId;

    }

    public void setStudentId(int studentId) {

        this.studentId = studentId;

    }

    public String getFirstName() {

        return firstName;

    }

    public void setFirstName(String firstName) {

        this.firstName = firstName;

    }

    public String getLastName() {

        return lastName;

    }

    public void setLastName(String lastName) {

        this.lastName = lastName;

    }

    public String getMajor() {

        return major;

    }

    public void setMajor(String major) {

        this.major = major;

    }

    @Override

    public String toString() {

        return "StudentType [studentId=" + studentId + ", firstName=" + firstName + ", lastName=" + lastName
                + ", major=" + major + "]";

    }

}

-CourseType

public class CourseType {

    private int courseCode;

    private String courseTitle;

    private int noOfCredits;

    public CourseType(int courseCode, String courseTitle, int noOfCredits) {

        super();

        this.courseCode = courseCode;

        this.courseTitle = courseTitle;

        this.noOfCredits = noOfCredits;

    }

    public int getCourseCode() {

        return courseCode;

    }

    public void setCourseCode(int courseCode) {

        this.courseCode = courseCode;

    }

    public String getCourseTitle() {

        return courseTitle;

    }

    public void setCourseTitle(String courseTitle) {

        this.courseTitle = courseTitle;

    }

    public int getNoOfCredits() {

        return noOfCredits;

    }

    public void setNoOfCredits(int noOfCredits) {

        this.noOfCredits = noOfCredits;

    }

    @Override

    public String toString() {

        return "CourseType [courseCode=" + courseCode + ", courseTitle=" + courseTitle + ", noOfCredits=" + noOfCredits
                + "]";

    }

}

-RecordType

public class RecordType {

    private int studentId;

    private int courseCode;

    private double courseTotalMarks;

    private char courseGrade;

    private int semesterTaken;

    public RecordType(int studentId, int courseCode, double courseTotalMarks, char courseGrade, int semesterTaken) {

        super();

        this.studentId = studentId;

        this.courseCode = courseCode;

        this.courseTotalMarks = courseTotalMarks;

        this.courseGrade = courseGrade;

        this.semesterTaken = semesterTaken;

    }

    public int getStudentId() {

        return studentId;

    }

    public void setStudentId(int studentId) {

        this.studentId = studentId;

    }

    public int getCourseCode() {

        return courseCode;

    }

    public void setCourseCode(int courseCode) {

        this.courseCode = courseCode;

    }

    public double getCourseTotalMarks() {

        return courseTotalMarks;

    }

    public void setCourseTotalMarks(double courseTotalMarks) {

        this.courseTotalMarks = courseTotalMarks;

    }

    public char getCourseGrade() {

        return courseGrade;

    }

    public void setCourseGrade(char courseGrade) {

        this.courseGrade = courseGrade;

    }

    public int getSemesterTaken() {

        return semesterTaken;

    }

    public void setSemesterTaken(int semesterTaken) {

        this.semesterTaken = semesterTaken;

    }

    @Override

    public String toString() {

        return "RecordType [studentId=" + studentId + ", courseCode=" + courseCode + ", courseTotalMarks="
                + courseTotalMarks + ", courseGrade=" + courseGrade + ", semesterTaken=" + semesterTaken + "]";

    }

}
nourimane commented: Hi, +0

And what are you willing to pay to have someone do your homework for you?

What have you tried so far ?

Hi,

All you have done is the data part, no more, so you have data that will be put in a List (ArrayList) so it's like you have multiple students, courses and marks. Then every point on your list must be a method (a function).

It's a start, we'll wait for your progression.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.