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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education