85.0k views
0 votes
Write the function header (the first line of the function definition) to define a function named DisplayStats that accepts a string (a character array named fName), an integer (num1), and a double (examScore), in that order, and returns nothing. Separate each item with 1 space (except around the parentheses and before any commas), and do not include the opening brace.

1 Answer

0 votes

Answer:

void DisplayStats(string fName, int num1, double examScore);

Step-by-step explanation:

Using C++ programming language.

Function headers (signatures) are allowed to be placed on top just before the main method in C++ indicating that the function's definition will be provided down below the main method, thereby allowing you to call the function within the main function.

The requirements of the the question are met. The function signature above indicates that it is void (wont return any value), The name is DisplayStats, and the parameter list are separated by single spaces as required with the correct data types.

User Homaxto
by
4.9k points