Assignment Details Object Oriented Programming < To Do Lab Exercises 1. Create a new project named lab5 and create a class named Student to store student information. Information that will be relevant to store are name, id number, and GPA. 1. Define a member function named summary() that prints a summary of the student's information. You can choose how this data is formatted to the screen (something readable please). 2. Create setter and getter functions for the private member variables of the Student class that are needed to run the program. 1. Make sure that the setters for id and GPA only take positive numbers. 3. Create a set() function, which allows you to set all member variables at once. 4. Create a default constructor that sets the default values of Student class to ("Unknown", 9999,0). Test your class with the driver program given below. If you find any problems with the driver program, fix them.

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
9:03
To Do
Assignment Details
Object Oriented Programming
//--- Test driver for class Student
#include <iostream>
#include <string>
#include "Student.h"
using namespace std;
int main()
Student alicia, benji, carmen, david;
alicia.set("Alicia", 1234, 4.0);
benji.set("Benji", 5678, 3.8);
carmen.set("Carmen",
9012, 3.5);
alicia.summary();
alicia.setGPA (3.9);
alicia.summary();
cout << "Benji's ID: " << benji.getID
benji.setID (5679);
benji.summary();
carmen.summary();
alicia.setGPA (-3.6);
alicia.summary();
david.summary();
◄ Previous
Resubmit Assignment
Dashboard Calendar
7
To Do
5G 504
C
Notifications
(
Next ►
Inbox
Transcribed Image Text:9:03 To Do Assignment Details Object Oriented Programming //--- Test driver for class Student #include <iostream> #include <string> #include "Student.h" using namespace std; int main() Student alicia, benji, carmen, david; alicia.set("Alicia", 1234, 4.0); benji.set("Benji", 5678, 3.8); carmen.set("Carmen", 9012, 3.5); alicia.summary(); alicia.setGPA (3.9); alicia.summary(); cout << "Benji's ID: " << benji.getID benji.setID (5679); benji.summary(); carmen.summary(); alicia.setGPA (-3.6); alicia.summary(); david.summary(); ◄ Previous Resubmit Assignment Dashboard Calendar 7 To Do 5G 504 C Notifications ( Next ► Inbox
9:03
< To Do
Lab Exercises
Assignment Details
Object Oriented Programming
1. Create a new project named lab5 and create
a class named Student to store student
information. Information that will be relevant
to store are name, id number, and GPA.
1. Define a member function named
summary() that prints a summary of
the student's information. You can
choose how this data is formatted to
the screen (something readable please).
2. Create setter and getter functions for
the private member variables of the
Student class that are needed to run
the program.
1. Make sure that the setters for id
and GPA only take positive
numbers.
3. Create a set() function, which allows
you to set all member variables at once.
4. Create a default constructor that
sets the default values of Student class
to ("Unknown", 9999, 0).
(
◄ Previous
Test your class with the driver program given
below. If you find any problems with the driver
program, fix them.
Resubmit Assignment
Dashboard Calendar
5G 504
7
To Do
C
Notifications
Next ►
Inbox
Transcribed Image Text:9:03 < To Do Lab Exercises Assignment Details Object Oriented Programming 1. Create a new project named lab5 and create a class named Student to store student information. Information that will be relevant to store are name, id number, and GPA. 1. Define a member function named summary() that prints a summary of the student's information. You can choose how this data is formatted to the screen (something readable please). 2. Create setter and getter functions for the private member variables of the Student class that are needed to run the program. 1. Make sure that the setters for id and GPA only take positive numbers. 3. Create a set() function, which allows you to set all member variables at once. 4. Create a default constructor that sets the default values of Student class to ("Unknown", 9999, 0). ( ◄ Previous Test your class with the driver program given below. If you find any problems with the driver program, fix them. Resubmit Assignment Dashboard Calendar 5G 504 7 To Do C Notifications Next ► Inbox
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Distributed Database Concepts
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