FITM Hypotenuse of A Right Triangle & Function Formal Parameters Problem Solving
Question Description
Assignment 3
Write an application (including algorithm) that uses a “void” function (CalculateHypotenuse) to calculate the hypotenuse of a right triangle. The function uses three formal parameters (i.e., side1 [pass by value], side2 [pass by value], hypotenuse [pass by reference]). The function calculates the hypotenuse using the “Pythagorean theorem”.
The application requires a sentinel controlled loop where program prompts for continuing and expects an entry of ‘Y’ or ‘y’ using the variable “cont”. Within the loop, the application provides for allowing the user to enter the length of the sides of the triangle, calls the function and displays the value of the hypotenuse.
Upload to the Canvas “Assignment 3 Submission” area.
Note: Keep in mind the 3 requirements for functions
- Function Declaration
- Function Definition
- Function Call
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."