Write a void function called getAge that has one formal parameter of the int data type. The function should prompt the user for their age and return the value through the parameter.
?
An example of the call to the function could be as follows, where the variable age has been declared to be of the int data type.
?
getAge(age);

What will be an ideal response?


void getAge(int &inYears){     cout > inYears;}//end of getAge function

Computer Science & Information Technology

You might also like to view...

What type of HTML list will automatically place a list marker, or bullet point, indicator in front of each item?

a. bullet list b. ordered list c. unordered list d. description list

Computer Science & Information Technology

In the accompanying figure, the yellow blend has not been expanded.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

___________________ is when the computer finally uses intricate algorithms to apply the effects you have specified on the objects you have created for a final 3D image.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The Control Source property for a calculated control may be either a(n) ____________________ or a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology