Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions