subject

Write the definition of a class ContestResult containing:An data member winner of type string , initialized to the empty string .An data member secondPlace of type string , initialized to the empty string .An data member thirdPlace 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 setThirdPlace 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 getThirdPlace that has no parameters and that returns the value of the data member thirdPlace. This is what I have so far:class ContestResult{private:string winner;string secondPlace;string thirdPlace;public:void setWinner(string);void setSecondPlace(string);void setThirdPlace(string);string getWinner();string getSecondPlace();string getThirdPlace();};void ContestResult::setWinner(string theWinner){winner="theWinner";}void ContestResult::setSecondPlace(strin g theSecondPlace){secondPlace="theSec ondPlace";}void ContestResult::setThirdPlace(string theThirdPlace){thirdPlace="theThird Place";}string ContestResult::getWinner(){return winner;}string ContestResult::getSecondPlace(){ret urn secondPlace;}string ContestResult::getThirdPlace(){retu rn thirdPlace;}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
You know the right answer?
Write the definition of a class ContestResult containing:An data member winner of type string , init...
Questions
question
Mathematics, 26.06.2019 16:00
question
Mathematics, 26.06.2019 16:00
question
Mathematics, 26.06.2019 16:00
question
Mathematics, 26.06.2019 16:00