Program plan:
1 .courseName and instructorNamevariables are used for inputs
2.GradeBook() constructor gets the name of course and its instructor
3. void setCourseName() stores the value of course name to class variable
4. string getCourseName() returns the course name
5. void setInstructorName() stores the value of instructor to class variable
6. void getInstructorName() returns the instructor name
7. void displaymessage() provides the information about course and its instructor
Program description:
The main purpose of the program is to allow user to store the course name and instructor name using constructor. It allows to update the course name and instructor name using setter and getter functions. Finally, it displays the course and instructor name information.

Want to see the full answer?
Check out a sample textbook solution
Chapter 16 Solutions
C How To Program, Global Edition
- Dijkstra's Algorithm (part 1). Consider the network shown below, and Dijkstra’s link-state algorithm. Here, we are interested in computing the least cost path from node E (note: the start node here is E) to all other nodes using Dijkstra's algorithm. Using the algorithm statement used in the textbook and its visual representation, complete the "Step 0" row in the table below showing the link state algorithm’s execution by matching the table entries (i), (ii), (iii), and (iv) with their values. Write down your final [correct] answer, as you‘ll need it for the next question.arrow_forward4. |z + 5 - 5i| = 7arrow_forward14. dz, C: |z❘ C: |z❘ = 0.6 ze² - 2iz Harrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT



