Answered step by step
Verified Expert Solution
Link Copied!

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

VIDEOGAME.H

image text in transcribed

VIDEOGAME.CPP

image text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

Write Hund's rule?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago