Question: This is the triangles.h file #ifndef __FUNCTION_HEADER #define __FUNCTION_HEADER double findOppositePyth(double, double, double, double); double findAdjacentPyth(double, double, double, double); double findHypotenusePyth(double, double, double, double); double

This is the triangles.h file

#ifndef __FUNCTION_HEADER #define __FUNCTION_HEADER double findOppositePyth(double, double, double, double); double findAdjacentPyth(double, double, double, double); double findHypotenusePyth(double, double, double, double); double findOppositeTrig(double, double, double, double); double findAdjacentTrig(double, double, double, double); double findHypotenuseTrig(double, double, double, double); #endif

this is the triangles.c file

double findOppositePyth(double adjacent, double hypotenuse, double x, double y){ return opposite; } double findAdjacentPyth(double opposite, double hypotenuse, double x, double y){ return adjacent; } double findHypotenusePyth(double opposite, double adjacent, double x, double y){ return hypotenuse; } 

I can only use one printf statement in this problem, how can I write it so that the output is the same as the followingI've already done the intermediate calculation, you can ignore it, I just want to know how to put the parameters I return into the function printoutput, and keep the other input data Input will always be given in the order of (opposite, adjacent, hypotenuse, x, y), with the missing side omitted.

input/output

findOppositePyth( 62, 86.9770084563, 0.7772682612, 0.7935280656 )

opposite = 61.00

adjacent = 62.00

hypotenuse = 86.98

x = 0.78

y = 0.79

input/output

findAdjacentPyth( 97, 129.6341004520, 0.8454352154, 0.7253611114 )

opposite = 97.00

adjacent = 86.00

hypotenuse = 129.63

x = 0.85

y = 0.73

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!