Question: c++ 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

c++
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 pop3Movies. Movie is a class that holds 3 parameters: a title, the rating, and the production cost of the movie. The class is defined as follows:
class Movie
{
public:
string title;
string rating;
double productionCost;
};
The function must populate the following movie data for the 3 movies, respectively:
First Movie parameter
Title: "Horror", rating: "G", prodCost: 150.5
Second
Title: "Romance", rating: "R", prodCost: 17.47
Third
Title: "Drama ", rating: "PG-13", prodCost: 600.8
test function in main provided only
c++ C++ Create a function in the main.cpp file that will accept
3 Movie parameters, passed by reference. The function must return void and

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