Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

What is topology? Explain with examples

Answered: 1 week ago