I keep getting the error'string' does not name a type; did you mean 'stdin' for thisproblem... Please
Fantastic news! We've Found the answer you've been seeking!
Question:
I keep getting the error'string' does not name a type; did you mean 'stdin' for thisproblem... Please someone give me an actual answer and not just thecopy of the wrong answer that everyone keeps posting. This is forC++
Transcribed Image Text:
✓ Instructions Write a full class definition for a class named ContestResult, and containing the following members: • A data member winner of type string, initialized to the empty string. • A data member secondPlace of type string, initialized to the empty string. • A data member third Place of type string, initialized to the empty string. • A member function called setWinner that has one parameter, whose value it assigns to the data member winner. • A member function called setSecondPlace that has one parameter, whose value it assigns to the data member secondPlace. • A member function called setThird Place that has one parameter, whose value it assigns to the data member thirdPlace. • A member function called getWinner that has no parameters and that returns the value of the data member winner. • A member function called getSecondPlace that has no parameters and that returns the value of the data member secondPlace. • A member function called getThird Place that has no parameters and that returns the value of the data member third Place. ✓ Instructions Write a full class definition for a class named ContestResult, and containing the following members: • A data member winner of type string, initialized to the empty string. • A data member secondPlace of type string, initialized to the empty string. • A data member third Place of type string, initialized to the empty string. • A member function called setWinner that has one parameter, whose value it assigns to the data member winner. • A member function called setSecondPlace that has one parameter, whose value it assigns to the data member secondPlace. • A member function called setThird Place that has one parameter, whose value it assigns to the data member thirdPlace. • A member function called getWinner that has no parameters and that returns the value of the data member winner. • A member function called getSecondPlace that has no parameters and that returns the value of the data member secondPlace. • A member function called getThird Place that has no parameters and that returns the value of the data member third Place.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
I keep getting the wrong answer for this question, as I think it is 2.06 but that must be wrong. X picture Click here for the Excel Data Set A. Use the standard error to construct a prediction...
-
Give an example in which a Type I error may be more serious than a Type II error.
-
Give an example of each type of error listed inExhibit. Narresponse error Acquiescance bias Respondent Handem samp ing Extremity bias error Deliberate alsification Total eror Response Interviewer...
-
In the expression 2 4 , the number 2 is called the______and 4 is called the_______.
-
Do you agree or disagree with the sentiment that logistics measurement systems need to include both financial and nonfinancial measures? Why?
-
An analyst gathered the following information about a company and the market: Using the discounted cash flow (DCF) approach, the cost of retained earnings for the company is closest to: A. 15.7%. B....
-
Using an incremental internal rate of return (IRR) analysis, the decision to replace the "current best" by the "challenger"' is based on what decision rule? a. The internal rate of return of the...
-
CVP analysis, income taxes Brooke Motors is a small car dealership. On average, it sells a car for $27,000, which it purchases from the manufacturer for $23,000. Each month, Brooke Motors pays...
-
Warranties normally: Multiple select question. have indefinite lives. guarantee repair or replacement. represent liabilities. cover a specific time period.
-
The personnel director of Hatch Financial. which recently absorbed another firm, is now downsizing and must relocate five information systems analysts from recently closed locations. Unfortunately,...
-
You are planning to run a fermentor to produce antibiotics from fungi, using a broth that contains 25 wt% glucose, 6 wt% phosphate, 6 wt% nitrate, and water. At 8 am, the fermentor is filled with...
-
ii) A 4-kg precision instrument confined to move vertically is rigidly attached to a massless platform which is supported by four springs each with an elastic constant of 25 N/m (Figure QB2.2). The...
-
The elevator system given in the figure moves up and down with a velocity of v=1 m/sec. As the elevator starts to move, it reaches to its steady state angular velocity in 1 seconds. It is known that...
-
12. List the procedures you would use to analyse abnormal system noise when carrying out diagnostic testing for mobile plant suspension systems. 13. List the procedures you would use to analyse...
-
I Given that at z=0 km, T = 288.15K, haruntdo od si09 orro L fst = 1.0 and To dlics nailoigoy puurt Lo B = -6.5 x10-3K/m. Hence, determine stal toigo useing Jord use this formula: at z = 6km. otros...
-
This simulation is a simplified version of an experiment done by Robert Milliken in the early 1900s. Hoping to learn more about charge, Milliken sprayed slightly ionized oil droplets into an electric...
-
Use regression to find an exponential equation that best fits the data above. The equation has form y = ab where: a- b=
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
On February 2, 2012, Alexandra purchases a personal computer for her home. The computer cost $3,000. Alexandra uses the computer 80 percent of the time in her accounting business, 10 percent of the...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
Explain the effect of each of these on the shape and position of the countrys production-possibility curve: a. A proportionate increase in the total supplies (endowments) of all factors of...
-
Why does the HeckscherOhlin theory predict that most research and development (R&D) activity is done in the industrialized countries?
-
A free-trade equilibrium exists in which the United States exports machinery and imports clothing from the rest of the world. The goods are produced with two factors: capital and labor. The trade...
Study smarter with the SolutionInn App