Question
3. Compose a C++ function named timesSeven. The function should accept an integer (int) argument. When the function is called, it should display the product
3. Compose a C++ function named timesSeven. The function should accept an integer (int) argument. When the function is called, it should display the product of the argument multiplied times seven (7).
4. Compose a C++ function named getSpeed that uses a reference parameter variable named speed to accept an integer argument. The function should prompt the user to enter a number in the range of 20 through 70. Set the parameter variable to zero if the user enters a number outside the range of 20 through 70.
5. Given the following prototype statement for a function that determines the minimum value between two given integer values:
int minimum(int a, int b);
compose the prototype statement for an overloaded function that uses the same function name but determines the minimum value between two given double values.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started