Home /
Expert Answers /
Computer Science /
in-c-please-6-write-a-function-that-returns-the-max-of-three-int-parameters-the-function-has-a-f-pa866
(Solved): in C++ please 6. Write a function that returns the max of three int parameters. The function has a f ...
in C++ please
6. Write a function that returns the max of three int parameters. The function has a fourth parameter representing a cap (also int). If the max exceeds the cap, the function just returns the cap. Use a descriptive function name. If the parameter values are 2536 , the function returns 5. If the parameter values are 125210 , the function returns 10 (because 12 exceeds the cap of 10 ). You need not call the function, just define the function.