1) Modify class GradeBook as follows: a) Include a second string data member that represents the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Modify class GradeBook as follows: a) Include a second string data member that represents the course instructor's name. b) Provide a set function to change the instructor's name and a get function to retrieve it. c) Modify the constructor to specify course name and instructor name parameters. d) Modify function display Message to output the welcome message and course name, then the string "This course is presented by: " followed by the instructor's name. Use your modified class in a test program that demonstrates the class's new capabilities. 1) Modify class GradeBook as follows: a) Include a second string data member that represents the course instructor's name. b) Provide a set function to change the instructor's name and a get function to retrieve it. c) Modify the constructor to specify course name and instructor name parameters. d) Modify function display Message to output the welcome message and course name, then the string "This course is presented by: " followed by the instructor's name. Use your modified class in a test program that demonstrates the class's new capabilities.
Expert Answer:
Answer rating: 100% (QA)
include include class GradeBook public GradeBookconst stdstring courseName const stdstring instructo... View the full answer
Related Book For
Numerical Methods for Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these programming questions
-
This program currently fails to compile. Modify TripleMin() so that item1 can be of a different type than item2 and item3. #include <iostream> using namespace std; template<typename...
-
Lab Exercise -- C++ Structures Objective: The purpose of the program is to: 1. Write functions to read in and print an Employee struct 2. Write an additional function that passes in an array of...
-
Modify the program HTSimulation so that it keeps track of the maximum of Peters winnings in each game of 40 tosses. Have your program print out the proportion of times that your total winnings take...
-
In the financial market, what causes a movement along the demand curve? What causes a shift in the demand curve?
-
Create the following element descriptions. Use the values supplied in the table. Create any alternate names and definitions based on your understanding of the element.
-
1. Using a decision tree based on maximizing expected profit, decide which machine Toledo Leather should select. Should overtime be scheduled? Or should a machine be modified and, if so, under what...
-
In 2016, a hacker tricked a Lamps Plus employee into disclosing the tax information of approximately 1,300 other employees, resulting in the filing of a fraudulent income tax return of Lamps Plus...
-
In its annual report to stockholders, Hakobe Inc. presents a condensed balance sheet with detailed data provided in supplementary schedules. 1. From the adjusted trial balance of Hakobe, prepare the...
-
Given the following data segment: .DATA var1: .BYTE 1, 2, 'Z' stri: .ASCIIZ "My String " var2: .WORD Ox12345678 var3: HALF 1000 Given Varl is 0X10010000 State address of strl, var2 & var3 strl: var2:...
-
Answer these questions, based on the debit memorandum shown here. 1. Which company is returning the merchandise? 2. How many items are being returned? 3. What amount is entered in the journal entry?...
-
Concord Corporation, which owes Skysong Inc. $3,440,000 in notes payable, is in financial difficulty To eliminate the debt, Skysong agrees to accept from Concord land having a fair value of...
-
Given the following information: Accounts receivable 31 December 2015 $281,962 Allowance for doubtful accounts balance: 31 December 2014 $3,693 Charged to costs and expenses: $2,951 Write-offs net of...
-
Brainstorm information about yourself that you want to include in your personal branding statement. > What type of position are you seeking? > What makes you qualified for this type of position? 2....
-
A computer system provides instructions with length 4 bytes each, and uses a page size of 1K bytes. Assume the following nonsense program. ORG READ LOOP MOVE SUB A B BLT ***** STOP ORG DS ... ORG DS...
-
Write a proposal on a Elon Musks star ship and why it would be good, who it would benefit, how much does it cost, and when it will get done?
-
Using the Corruption Perceptions Index on Transparency International's website, Transparency International 2012 Corruptions Perception Index, discuss how you would advise your senior management to...
-
For Year 1, prepare Telo's classified balance sheet as of December 31. Important! Be sure to click the correct Year at the top of the dashboard. TELO Balance Sheet December 31, Year 1 Assets Current...
-
Beginning with a country that has a trade deficit, demonstrate graphically what will happen to a countrys potential output with globalization if that countrys costs of production fall. Explain your...
-
Evaluate and interpret the condition numbersfor (a) f(r) = x- 1 + 1 (b) f(.x) = e* (c) f(x) = Vx? + 1 x - 1 for x = 1.00001 for x == 10 for x = 300 (d) f(x) for x= 0.001 sin x (e) f(.x) for r =...
-
Find the positive real root of (x) = x 4 8x 3 35x 2 + 450x 1001 using the false-position method. Use initial guesses of x t = 4.5 and x a = 6 and performs five iterations. Compute both the true...
-
Rather than the linear relationship of Eq. (1.7), you might choose to model the upward force on the parachutist as a second-order relationship, F U = c v 2 where c = second-order drag coefficient...
-
When an organization decides to replace a legacy system, it usually chooses a contemporary database system over a relational file-based system. But each type of system has its own advantages and...
-
Complete the following sentences: system is also called a distributed data and application client/server system or
-
The textbook states that "data is a resource that must be controlled and managed." Explain this statement, and indicate whether you agree of not, and why.
Study smarter with the SolutionInn App