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 CULINARY_COMPETITION_H
#define CULINARY_COMPETITION_H
#include
using namespace std;
class CulinaryCompetition
{
private:
string entrantName;
string dishName;
int score;
public:
void enterDetails(string, string);
int getScore() const;
void setScore(int);
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.
1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!