Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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