Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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