Question: c++ Name: CSC126 Spring 2018 Final-A 4) Write a value returning function named rightTriangle that takes three double parameters. The function returns 'y' if the

 c++ Name: CSC126 Spring 2018 Final-A 4) Write a value returning

c++

Name: CSC126 Spring 2018 Final-A 4) Write a value returning function named rightTriangle that takes three double parameters. The function returns 'y' if the three numbers create a right triangle, and 'n otherwise. [Reminder: To check if a triangle with sides a, b, and c, (with c as the longest side) is a right triangle, check if a b a) (2 points) Give the function prototype: b) (2 points) Give an example of the function call (from main) c) (10 points) Write the function definition (header and body)

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 Databases Questions!