Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started