The code is in C++

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter1: Introduction To Tal Distributors, Colonial Adventure Tours, And Solmaris Condominium Group
Section: Chapter Questions
Problem 3SCG
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-
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-
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning