Mr. John has a farm in UK Valley. His farm contains cows and chickens. In his farm, cows produce Milk and chickens give eggs. He sells the liter of milk with (1.24$) and each egg with (90 Fils). We need to develop a program in C++ that helps John in organizing and tracking the production of his farm. Write a complete C++ program that uses the OOP model to allow John to record the daily production of each cow and each chicken. Then your program should enable John to display a report (on demand) of his farm productions; the report includes the total Milk amount (in Liters), the total Eggs (in number of eggs), benefit of milk, benefit of eggs, percentage of benefit of cows, percentage of benefit of chickens. Your program should support the following operations: 1- add new Cows. 2- add new Chickens. 3- modify daily production for each cow and chicken 4- estimate the benefit gained at any specific day value; for example, Abu Tawfiq can estimate the benefit after 5 days of production, or after 100 days, .. etc. 5-Note: Don't use any containers, Except Lists
Mr. John has a farm in UK Valley. His farm contains cows and chickens. In his farm, cows produce Milk and chickens give eggs. He sells the liter of milk with (1.24$) and each egg with (90 Fils). We need to develop a program in C++ that helps John in organizing and tracking the production of his farm. Write a complete C++ program that uses the OOP model to allow John to record the daily production of each cow and each chicken. Then your program should enable John to display a report (on demand) of his farm productions; the report includes the total Milk amount (in Liters), the total Eggs (in number of eggs), benefit of milk, benefit of eggs, percentage of benefit of cows, percentage of benefit of chickens.
Your program should support the following operations:
1- add new Cows.
2- add new Chickens.
3- modify daily production for each cow and chicken
4- estimate the benefit gained at any specific day value; for example, Abu Tawfiq can estimate the benefit after 5 days of production, or after 100 days, .. etc.
5-Note: Don't use any containers, Except Lists
Step by step
Solved in 8 steps with 7 images