Create a class Student that contains information about a student’s name, semester, roll no, and date of admission. To store the date of admission, use a structure to define date. Provide a. a no-argument constructor for initializing the values of data members to some defaults. b. a 4-argument constructor to initialize the data members sent from the calling function at the time of creation of an object (date should be sent from outside in the form of a date object). c. An input function for setting the status of a student. d. A display function to display all the attributes of a student. Derive a class undergraduate from Student class that contains some additional information. This information is about the semester GPA of a student and the credit points earned per semester. To store this data, provide a 2D array (2x8 array since at maximum there are 8 semesters for an undergraduate program). One dimension of the array should hold information about the SGPA of each semester so far and the other dimension should hold the corresponding credit points earned in that semester. a. Create a no-argument and a 5-argument constructor for data member initialization. b. Provide overridden functions for getting and setting the data members. c. Provide another function to calculate the CGPA of student based on the information provided by the 2D array. Derive a class Graduate from Student class that also has the same additional information as the Undergraduate class but in this case, the array is 2x4 since at maximum there are four semesters in a Graduate program. There are two additional data members: one to store the title of the last degree held and another to store the area of specialization in graduate program. Provide appropriate constructors and overridden member functions. Write a main function to test this class.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 6SA
icon
Related questions
Question

Create a class Student that contains information about a student’s name, semester, roll no, and date of admission. To store the date of admission, use a structure to define date.

Provide
a. a no-argument constructor for initializing the values of data members to some defaults.

b. a 4-argument constructor to initialize the data members sent from the calling function at the time of creation of an object (date should be sent from outside in the form of a date object).

c. An input function for setting the status of a student.

d. A display function to display all the attributes of a student.

Derive a class undergraduate from Student class that contains some additional information. This information is about the semester GPA of a student and the credit points earned per semester. To store this data, provide a 2D array (2x8 array since at maximum there are 8 semesters for an undergraduate program). One dimension of the array should hold information about the SGPA of each semester so far and the other dimension should hold the corresponding credit points earned in that
semester.

a. Create a no-argument and a 5-argument constructor for data member initialization.

b. Provide overridden functions for getting and setting the data members.

c. Provide another function to calculate the CGPA of student based on the information provided by the 2D array.

Derive a class Graduate from Student class that also has the same additional information as the Undergraduate class but in this case, the array is 2x4 since at maximum there are four semesters in a Graduate program. There are two additional data members: one to store the title of the last degree held and another to store the area of specialization in graduate program. Provide appropriate constructors and overridden member functions.

Write a main function to test this class.

Create a class Student that contains information about a student's name, semester, roll no, and date
of admission. To store the date of admission, use a structure to define date.
Provide
a. a no-argument constructor for initializing the values of data members to some defaults.
b. a 4-argument constructor to initialize the data members sent from the calling function at the
time of creation of an object (date should be sent from outside in the form of a date object).
c. An input function for setting the status of a student.
d. A display function to display all the attributes of a student.
Derive a class Undergraduate from Student class that contains some additional information. This
information is about the semester gpa of a student and the credit points earned per semester. To
store this data, provide a 2D array (2x8 array since at maximum there are 8 semesters for an
undergraduate program). One dimension of the array should hold information about the SGPA of each
semester so far and the other dimension should hold the corresponding credit points earned in that
semester.
a. Create a no-argument and a 5-argument constructor for data member initialization.
b. Provide overridden functions for getting and setting the data members.
c. Provide another function to calculate the CGPA of student based on the information provided by
the 2D array.
Derive a class Graduate from Student class that also has the same additional information as the
Undergraduate class but in this case, the array is 2x4 since at maximum there are four semesters in a
Graduate program. There are two additional data members: one to store the title of the last degree
held and another to store the area of specialization in graduate program. Provide appropriate
constructors and overridden member functions.
Write a main function to test this class.
Transcribed Image Text:Create a class Student that contains information about a student's name, semester, roll no, and date of admission. To store the date of admission, use a structure to define date. Provide a. a no-argument constructor for initializing the values of data members to some defaults. b. a 4-argument constructor to initialize the data members sent from the calling function at the time of creation of an object (date should be sent from outside in the form of a date object). c. An input function for setting the status of a student. d. A display function to display all the attributes of a student. Derive a class Undergraduate from Student class that contains some additional information. This information is about the semester gpa of a student and the credit points earned per semester. To store this data, provide a 2D array (2x8 array since at maximum there are 8 semesters for an undergraduate program). One dimension of the array should hold information about the SGPA of each semester so far and the other dimension should hold the corresponding credit points earned in that semester. a. Create a no-argument and a 5-argument constructor for data member initialization. b. Provide overridden functions for getting and setting the data members. c. Provide another function to calculate the CGPA of student based on the information provided by the 2D array. Derive a class Graduate from Student class that also has the same additional information as the Undergraduate class but in this case, the array is 2x4 since at maximum there are four semesters in a Graduate program. There are two additional data members: one to store the title of the last degree held and another to store the area of specialization in graduate program. Provide appropriate constructors and overridden member functions. Write a main function to test this class.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning