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
// 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; }

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
Get step-by-step solutions from verified subject matter experts
