Question: Create the following functions: void printNumber ( int number ) ; / / prints the number to the console int doubleNumber ( int number )
Create the following functions:
void printNumberint number; prints the number to the console
int doubleNumberint number; returns the double of the number sent to the function
double doubleNumberdouble number; returns the double of the number sent to the function
void doubleNumberint& number; doubles the input number
void printMessagestring message; prints the message to the console that was sent to the function
void printMessagestring message, ostream& os; prints the message to the outstream that was sent to the function
int getIntValue; gets an integer from the user
int randBetweenint min, int max; calculates a random number between min and max
double circleAreadouble radius; returns the area of a circle
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
