WRITE FUNCTION PROTOTYPES for the following functions.
The functions are described below on page 2. (Just write the prototypes)
When necessary, use the variables declared below in main().
int main()
{
double num1 = 1.5;
double num2 = 2.5;
char choice;
double result;
string firstName;
string lastName;
char initial;
bool isPos;
}
1.) showMenu
2.) getChoice
3.) calcResult
4.) showResult
5.) getInfo
6.) showName
7.) calcSquare
8.) isPositive
USE THESE VARIABLES, when needed, to write
function prototypes (#1 - #8)
Also, use the variables to answer questions #9 - #15.
NOTE: You can use the same variable in different questions.
(1 point each) Write the FUNCTION DEFINITIONS for the functions described in #1 - #8.
Include the first line of the function and body for each definition.
9.) (1 pt.) Write a complete function definition for the showMenu function.
This function should match the prototype in #1).
Return type: No value is returned.
Parameters: No arguments are passed to the function.
Output: A. Multiply a number by 2.
B. Divide a number by 2.
This is all of the output
from the function.
? # wrong on this page