Question: Task: The project will be a simple inventory program to manage your coin collection and how much it is worth. $$$$ You will need to

 Task: The project will be a simple inventory program to manage

Task: The project will be a simple inventory program to manage your coin collection and how much it is worth. $$$$ You will need to create a C++ project that will have 3 source files: a main file (driver program), a class specification file (header file), and a class implementation file. Class: The Coin class will contain the following data members: - year the year the coin was minted - faceVal original value of the coin - description description of the cois - quantity quantity on-hand of this coin - marketVal estimated current market value of this coin - totalVal static, that holds the total market value of the collection The Coin class will need these member functions: - a constructor function to initialize all of the data attributes - a destructor function - mutator functions - should include basic input validation so that negative numbers are not store in the quantity or value members, and that year is in an appropriate range (for the sake of simplicity, you may assume that you do not have access to coins created in the B.C. era). Be sure to update the static member as needed. - accessor functions - a function to calculate the difference between a coin's faceVal and its marketVal Main processing: Create an array of Coin objects, instantiating at least 3 objects. The driver program should utilize/demonstrate each of the class functions. The driver should be able to display the collection. If needed, you may use the array index as a record key to access different coins

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!