Question
A dairy farm business is growing fast in your neighbourhood and want your support in developing an application to keep track of their milk production.
A dairy farm business is growing fast in your neighbourhood and want your support in developing an application to keep track of their milk production. In this application, you are required to create class called Dairy that has a separate integer member data for liters, millilitres and string type of date parameter to store daily production data . Implement the following tasks:
A constructor that initializes the data members to safe empty state.
A parameterized constructor that initializes the data members to fixed values
A member function to add the production of whole week
A member function to display the weekly milk production.
A member function to display the average daily and average weekly milk production.
There should be copy constructor that copies an object (which stores the result of addition) to another one.
Note: Definition of the member function should be outside of the class
Note: You must add required member functions or data members/variables in your program to complete its execution.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started