Question: Please use c++ please derive a class from this fish class i have written I will put it on here I have not put on

Please use c++ please derive a class from this fish class i have written I will put it on here I have not put on all my code here because people are not answering they are just copying my code and pasting as their answer and not answered any questions thank you if you need all of my code i have written please ask.
#include #include #include #include #include #include
using namespace std;
class FISH{ private: string name; double weight; double purchasedCost; int unit; double amount; char *date; public: FISH(){ time_t ttime = time(0); tm *gmt_time = gmtime(&ttime);
6. Derive a new class SHELLFISH from the FISH class and populate it using the data in the following Table: (10%) Shellfish Mussel Prawn Scallop Mean Weight (kg) 0.05 0.02 0.03 Purchase Cost (/kg) 4.00 6.25 6.50 Selling Price (/kg) 4 x Purchase Cost 4 x Purchase Cost 5 x Purchase Cost Units (min-max) 40-200 50-150 20-100 Expiry Date Entry Date + 2 Entry Date + 2 Entry Date + 2 7. Add a function to the "SHELLFISH class to calculate the number of packets of prawns in stock given that each packet holds 30 prawns (10%) 8. Add a function to enable the sale of prawns in packets, calculate and display the cost per packet of prawns and the profit from the sale of each packet, updating stock and income as necessary (10%) 9. Write main() code that uses the fish and shellfish classes to manipulate produce at a fish counter, with a user interface that facilitates sales and purchases (10%) 6. Derive a new class SHELLFISH from the FISH class and populate it using the data in the following Table: (10%) Shellfish Mussel Prawn Scallop Mean Weight (kg) 0.05 0.02 0.03 Purchase Cost (/kg) 4.00 6.25 6.50 Selling Price (/kg) 4 x Purchase Cost 4 x Purchase Cost 5 x Purchase Cost Units (min-max) 40-200 50-150 20-100 Expiry Date Entry Date + 2 Entry Date + 2 Entry Date + 2 7. Add a function to the "SHELLFISH class to calculate the number of packets of prawns in stock given that each packet holds 30 prawns (10%) 8. Add a function to enable the sale of prawns in packets, calculate and display the cost per packet of prawns and the profit from the sale of each packet, updating stock and income as necessary (10%) 9. Write main() code that uses the fish and shellfish classes to manipulate produce at a fish counter, with a user interface that facilitates sales and purchases (10%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
