Question: 1. Write a program that has 2 overloaded functions named cubeIt. 2. The first function called cubeIt should take in an integer and cube it

1. Write a program that has 2 overloaded functions named cubeIt.

2. The first function called cubeIt should take in an integer and cube it (x*x*x) and return an integer.

3. The second function also called cubeIt should take a double and cube it and return a double

4. Direct the user to input values for the integer function and display the original number and the result after the function call result, then do the same for the double. Do not use pass by reference here. The functions MUST have the same name and use overloading

The functions MUST have the same name and use overloading

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!