Question: Design, code, and test a program that includes a function of type double called yongl that accepts two double arguments ( you must write the

Design, code, and test a program that includes a function of type double called yongl that accepts two double arguments (you must write the yongl function). When called, your function will add the two arguments then divide the sum by 2. It will then return that result. Your main function should call yongl then display the value returned by the function. Test your function thoroughly then submit output using the arguments 16.1 and 1.16. Remember that a structured function must have have only one return statement. Your program must be structured, commented, professional in appearance, and use only symbolic constants as necessary. (80 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!