Question: Use c++ please thank you. Task: Create the class FISH suitable for a fishmonger's counter, with reference to the Table below. 1. Implement code for
Use c++ please thank you.

Task: Create the class FISH suitable for a fishmonger's counter, with reference to the Table below. 1. Implement code for all methods, constructors, accessors, mutators, functions, etc, necessary to create objects and automatically populate the class using this data (25%) 2. Draw the UML glyph for the class (5%) . Your code must: Ensure Purchase Cost per item is used to automatically determine Selling Price; Ensure the number of units are randomly generated within stated min-max bounds; Ensure the Expiry Date is calculated from the date at the time of data entry (using the clock on the computer). Fish Cod Plaice Salmon Haddock Tuna Mean Weight (kg) 0.37 0.37 1.30 0.37 0.45 Purchase Cost (/kg) 6.50 5.25 4.50 4.00 6.25 Selling Price (/kg) 2 x Purchase Cost 2 x Purchase Cost 3 x Purchase Cost 3 x Purchase Cost 4x Purchase Cost Units (min-max) 10-20 10-20 15-25 5-15 1-10 Expiry Date Entry Date + 3 Entry Date + 3 Entry Date + 3 Entry Date + 3 Entry Date + 3 3. Add functions to the class to calculate the total weight of any given fish and the cost and selling price per unit (9%) 4. Assume the counter begins with a total income of 50. Add a purchasing function that increases stock and decreases income accordingly (10%) 5. Add a unit sale function that decreases stock, logs income and calculates profit, displaying each (11%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
