Question: 1-) Write a c++ program to make a calculator to operate on arrays. Calculator needs to have operations: t,,l, . Calculator class is like following:

 1-) Write a c++ program to make a calculator to operate

1-) Write a c++ program to make a calculator to operate on arrays. Calculator needs to have operations: t,,l, . Calculator class is like following: Class variables: - numbers: You will have a dynamic array for the numbers entered. - Length: This variable stores the size of array. Class Functions: - Calculator(): Default Constructor for your class. - Calculator(int): Overloaded constructor that takes one parameter for the size of array. - calculator(): In this destructor function, you will delete your dynamic array. Overloaded Operators: - calculator operator + (const calculator \&obj): This is an overloaded operator to sum two dynamic arrays of different objects. - calculator operator - (const calculator \&obj): This is an overloaded operator to subtract two dynamic arrays of different objects. - calculator operator * (const calculator \&obj): This is an overloaded operator to multiply two dynamic arrays of different objects by each other. - calculator operator / (const calculator \&obj): This is an overloaded operator to divide two dynamic arrays of different objects by each other. - friend ostream\& operatores (ostream \&os, const calculator \&obj): This is a friend function to print arrays. Thanks to this function you can print your arrays with this format: "cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!