Question: You will need VideoGame.h and VideoGame.cpp from the previous project (POSTED AT THE END OF THIS VIDEOGAME.H VIDEOGAME.CPP The objective of this project is to

You will need VideoGame.h and VideoGame.cpp from the previous project (POSTED AT THE END OF THIS You will need VideoGame.h and VideoGame.cpp from the previous project (POSTED ATTHE END OF THIS VIDEOGAME.H VIDEOGAME.CPP The objective of this project isto utilize a previously created class. The main program will demonstrate how

VIDEOGAME.H

to pass class objects to functions. 1. You will need VideoGame.h and

VIDEOGAME.CPP

VideoGame.cpp from the previous project 2. Add two function to the VideoGame

The objective of this project is to utilize a previously created class. The main program will demonstrate how to pass class objects to functions. 1. You will need VideoGame.h and VideoGame.cpp from the previous project 2. Add two function to the VideoGame class . increaseStock- void increaseStockint number), This function will add the numberpassed in to the function to the numberinStock . decreaseStock- void decreaseStockint number) This function will subtract the numberpassed in to the function from the numbernStock 3. Create 4 tunctions that will be located with the main program (astname. cpp) 3. Create 4 functions that will be located with the main program (lastname4.cpp) getVideeGameinfo This function will prompt the user to enter all 5 data members of the class and store them in a VideoGame object that will be returned to main . addToStock This function will prompt the user to enter the number they wish to add to the numberlnStock by and then call the increaseStock function to update the numberlnStock member and then the updated VideoGame will be returned to main removeFromStock This function will prompt the user to enter the number they wish to remove from the numberlnStock by and then call the decreaseStock function to update the numberlnStock member and then the updated VideoGame will be returned to main

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!