Write a funtion using C++ statements called getTotalPraduction() which takes two integer values (value1,value2) and returns the total value
write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize
this data to 0 and another should initialize it to fixed values .another member function should display it The final member function
should compare two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one
should contain today's date and another one should contain your date of birth) and one that isn’t initialized. Then it should compare
the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this
third variable. Make appropriate member functions const.
write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize
this data to 0 and another should initialize it to fixed values .another member function should display it The final member function
should compare two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one
should contain today's date and another one should contain your date of birth) and one that isn’t initialized. Then it should compare
the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this
third variable. Make appropriate member functions const.
//what is the error in this program??
#include <iostream>
#define size 5
using namespace std;
int main () {
int numbers=(5,10,15,20,25,30,35,40}; double total, average;
for (int i;i <size;i++)
total+= numbers;
average = total/size;
cout << "Average" << average << endl;
return 0;
}With the concepts of Queue Data Structure, write the functions performing the following tasks:
1.Insertion of an element in the Queue i.e. enqueue()
2.Deletion of an Element from the Queue i.e. dequeue()
3.Display All Elements in the Queue i.e. dispqueue()
4.Display the Element at the Front i.e. dispfront()
5.enqueue() the Queue with the elements in ascending order. After that,use the above four functions to display the same elements in the Queue in descending order.
Design a system that takes is capable of squaring its input 2D array followed by division with scalar ‘R’ For example, if the input array is A[m][n], the output should be A^2[m][n].