Question: // This program uses overloaded functions. #include #include using namespace std; // Function prototypes int square(int); double square(double); void print(int, double, string); int main() {

// This program uses overloaded functions. #include #include using namespace std;

// Function prototypes int square(int); double square(double); void print(int, double, string);

int main() { int userInt; double userFloat;

// Get an int and a double. cout > userInt >> userFloat; // Display their squares. cout

//************************************************************** // Definition of overloaded function square. * // This function uses an int parameter, number. It returns the * // square of number as an int. * //**************************************************************

int square(int number) { return number * number; }

//*************************************************************** // Definition of overloaded function square. * // This function uses a double parameter, number. It returns * // the square of number as a double. * //***************************************************************

double square(double number) { return number * number; }

 // This program uses overloaded functions. #include #include using namespace std;

Using the template above.

Project21 1. Create a praject calePrije 2. Change the fancton print to takeaniad tobe vanables and rehune void 3. Add a funcion print to take singaresa and 4. Cal the frst gint furcton rom mein vt te sraie 5. Call the second Print fundion fom nain wth the vae End of the program For fun s and teet pi

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!