Question: C++ Create a function in the main.cpp file that will accept 3 Movie parameters, passed by reference. The function must return void and must be

C++
Create a function in the main.cpp file that will accept 3 Movie parameters, passed by reference. The function must return void and must be called threeMovies. The class is defined as follows:
class Movie
{
public:
string title;
string rating;
double productionCost;
};
The function must following movie data for the 3 movies, respectively:
First Movie parameter
Title: "cartoon", rating: "G", prodCost: 100
Second
Title: "korea", rating: "R", prodCost: 23.47
Third
Title: "horror ", rating: "PG-13", prodCost: 60.8
 C++ Create a function in the main.cpp file that will accept
3 Movie parameters, passed by reference. The function must return void and

5 7 9 1 #include 2 using namespace std; 3 4 #include"movieclass.cpp" 6 //Do NOT change or add anything above this line, unless instructed 8 //TODO: Create the required function here 10 int main() 11 [ 12 13 14 //You can use this space to call and test you function 15 16 17 18 } File is marked as read only Current file: movieclass.cpp 1 #include 2 using namespace std; 3 class Movie 4 5 public: string title; string rating; double productionCost; 9 10 }; 6 7 8

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 Databases Questions!