Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C + + function that will work as a mark calculator.The program should have a function called MarkCalc ( ) which receives three
Write a C function that will work as a mark calculator.The program should have a function called MarkCalc which receives three parameters: the marks of courses double and an option int from the user. The function should work as follows, using an ifelse chain or switch: If option is The function will return the maximum mark out of the passed marksIf option is The function will return the average of the passed marksOtherwiseThe function will return At the beginning of the program, type your full name and your ID as a comment.In the main prompt the user to enter the marks and the option, then call the function MarkCalc properly. PS: The function should return a double value.In the main function, display the result of calling the function MarkCalcCreate a function prototype and function difinition for all functions.USE appropriate input output messages and correct data types.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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