C How to Program (8th Edition)
C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
Question
Book Icon
Chapter 16, Problem 16.11E
Program Plan Intro

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.

Blurred answer
Students have asked these similar questions
Objective: string and character manipulation, string.h and ctype.h libraries  For each of the problems, create a user-defined function. Then write a driver program for the functions inside the main. 1- Write a function that takes a word less than 25 characters long and returns the letter that word starts with (in capital letters). 2- Write a function that has a string as formal parameter. The function then replaces all spaces and punctuation marks in the string with the asterisk (*). 3- Write a function that takes as input one line and reverses the words of the line 4- Write a function that takes nouns (a string) as inputs and forms their plurals based on these rules: a. If noun ends in “y”, remove the “y” and add “ies”. b. If noun ends in “s”, “ch”, or “sh”, add “es”. c. In all other cases, just add “s”.  Now create the driver program - Ask the user for their first and last name. Store the names in separate arrays. - Greet the user by their full names. - Let them know what their…
Prototype and functional call please
26 LAB: Rolling for a pair Given two GVDie objects that represent 2 six-sided dice and an integer that represents a desired value as parameters, complete the function rolling for pair(). The function rolling for pair() rolls the dice until a pair with the desired value is rolled and then returns the number of rolls thrown to achieve the result. Assume the desired value received from input is within the appropriate range, 1-6. Note: For testing purposes, the GVDie objects are created in the main() function using a pseudo-random number generator with a fixed seed value. The program uses a seed value of 15 during development, but when submitted, a different seed value will be used for each test case Ex If the GVDie objects are created with a seed value of 15 and the input of the program is: 3 the output is: It took 13 rolls to get a pair of 3's. 375860 2438106.qx3zay?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning