Question: Question: Complete the following code to define a function average that takes a float number named weight as a formal parameter and performs the following:
Question: Complete the following code to define a function average that takes a float number named weight as a formal parameter and performs the following: Prompt the user to enter three input values Calculates the total of them and displays it. Return the total multiplied with the weight to the calling function float average ( float weight) { }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
