Question: // Demonstrates passing arguments to function parameters. #include #include using namespace std; // TODO: Write function prototype here. This function should be: // Name: PrintLine

// Demonstrates passing arguments to function parameters.

#include #include using namespace std;

// TODO: Write function prototype here. This function should be: // Name: PrintLine // Parameter(s): howMany & symbolToPrint (use appropriate data types) // Returns:

//-----------------------------------------------------------------------------

int main() { /* TODO: Call (invoke) the function where necessary to produce output as shown in sample (below).

NOTE: You will need to break-up this long output statement into at least 3 separate output statements. */

cout << " Simple C++ Integer Types" << endl << " (Microsoft Specific)" << endl << "Data type Range" << endl << "char: " << setw(20) << CHAR_MIN << " to " << CHAR_MAX << endl << "short:" << setw(20) << SHRT_MIN << " to " << SHRT_MAX << endl << "int: " << setw(20) << INT_MIN << " to " << INT_MAX << endl << "long: " << setw(20) << LONG_MIN << " to " << LONG_MAX << endl;

return 0; }

//-----------------------------------------------------------------------------

// TODO: Write the PrintLine function definition here // Be sure that the function heading matches the prototype above

// PrintLine() // prints symbolToPrint repeatedly (as defined by howMany) on one line

//-----------------------------------------------------------------------------

/* Sample program output:

********************************************* Simple C++ Integer Types (Microsoft Specific) ---------------------------------------- Data type Range ---------------------------------------- char: -128 to 127 short: -32768 to 32767 int: -2147483648 to 2147483647 long: -2147483648 to 2147483647 *********************************************

*/

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!