Write a main program that does the following

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 + "]";

    }

}

Get the eBook Self-Publishing Bundle for Only $25

Decades ago, authors who were interested in getting their books published wool have to talk to different publishers, send them their manuscript, and then hope that someone would appreciate their work. Today, however, you don’t need a publisher to get your books out there. In fact, authors now have the option to publish their own […]

The post Get the eBook Self-Publishing Bundle for Only $25 appeared first on designrfix.com.

How We Chose The Best Pagination Examples: Navigational And Page Links

A feature that allows the user to go from one page to another, via search results, archives or in general is known as pagination. This can be considered an all too frequently disregarded and under developed feature of a website. Most times, they are not given much thought, in their utilization on the site. There are […]

The post How We Chose The Best Pagination Examples: Navigational And Page Links appeared first on designrfix.com.

Best Free Gimp Brushes You Can Download Today: Image Manipulation

Graphic design and manipulation is a way of exploring the more creative elements of our personality. Today, software technology has provided so many new tools to create and manipulate distinct graphics. One such tool is the GNU Image Manipulation Program, GIMP. It provides a multiplicity of features that allow users to do way more than simple […]

The post Best Free Gimp Brushes You Can Download Today: Image Manipulation appeared first on designrfix.com.