Anzeige
 Question 2 (35 points) Write a main function that uses the Student cl.pdf
Nächste SlideShare
Database AssignmentDatabase Assignment
Wird geladen in ... 3
1 von 1
Anzeige

Más contenido relacionado

Similar a Question 2 (35 points) Write a main function that uses the Student cl.pdf(20)

Más de ahuja124(20)

Anzeige

Question 2 (35 points) Write a main function that uses the Student cl.pdf

  1. Question 2 (35 points) Write a main function that uses the Student class done in the previous question. Assume that you have implemented the Student class correctly with all functions given. Also, assume that you have setters and getters for id, name, and grades member variable. In the main function, do the following: a. Define two Student objects s1 and s2 where s1 uses the default constructor and s 2 uses the initializer constructor. Initialize s2 with 1000 for the id and "Salem" for the name. (7 points) b. Define an array of integers of size 20 , read 20 grades from user input, and assign the read grades to student $2. (7 points) c. Define an array of 100 student objects and call it PSUTStudents. Read the ids, names, and grades of each student from user input. (7 points) d. Print the names of the students who have their GPAs above the average of the 100 students. (7 points) e. Print the name of the student who scored the highest in call courses (Course by Course comparison). Note that this student might not be the one of highest GPA. (7 points)
Anzeige