A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
Bartleby Related Questions Icon

Related questions

Question

The code is in C++

Here are the details of all students:
ID: 83557 | Grade: A
ID: 80992 | Grade: C+
ID: 81483 | Grade: B-
expand button
Transcribed Image Text:Here are the details of all students: ID: 83557 | Grade: A ID: 80992 | Grade: C+ ID: 81483 | Grade: B-
Create a class called "Student" that has private member variables for the student's ID
number and grade. The class should have four public member functions:
·
set_ID) to set the ID number of the student
set_grade() to set the grade of the student
get_ID() to retrieve the ID of the student
get_grade to retrieve the grade of the student
In your main function, create an array of three Student objects. Prompt the user to enter
the ID number and grade for each student and use the member functions to set the
values. After all the values have been set, display the data for each student. As an
example, your program execution should look like:
Enter the ID and grade of student #1: 83557 A
Enter the ID and grade of student #2: 80992 C+
Enter the ID and grade of student # 3: 81483 B-
expand button
Transcribed Image Text:Create a class called "Student" that has private member variables for the student's ID number and grade. The class should have four public member functions: · set_ID) to set the ID number of the student set_grade() to set the grade of the student get_ID() to retrieve the ID of the student get_grade to retrieve the grade of the student In your main function, create an array of three Student objects. Prompt the user to enter the ID number and grade for each student and use the member functions to set the values. After all the values have been set, display the data for each student. As an example, your program execution should look like: Enter the ID and grade of student #1: 83557 A Enter the ID and grade of student #2: 80992 C+ Enter the ID and grade of student # 3: 81483 B-
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning