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 


VIDEOGAME.H

VIDEOGAME.CPP

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
Get step-by-step solutions from verified subject matter experts
