Question: : You are developing an application for a culinary competition. In your application, a class named CulinaryCompetition has been declared and implemented. Its specification file
: You are developing an application for a culinary competition. In your application, a class named CulinaryCompetition has been declared and implemented. Its specification file is named CulinaryCompetition.h and appears as follows:
#ifndef CULINARYCOMPETITIONH
#define CULINARYCOMPETITIONH
#include
using namespace std;
class CulinaryCompetition
private:
string entrantName;
string dishName;
int score;
public:
void enterDetailsstring string;
int getScore const;
void setScoreint;
void displayEntryDetails;
;
#endif
Write a full program that does the following:
Includes the correct header file for the class specification.
In the main function creates an instance of the CulinaryCompetion class.
Calls the object's enterDetails method, passing as arguments the variables myName, and myDish. You can assume these variables have already been declared and are available to you.
Calls the object's setScore method, passing the myScore variable as its argument. You can assume the myScore variable has already been declared and is available.
Calls the object's displayEntryDetails method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
