Trying to solve an issue while studying but I am stuck.
Basically,
I have 3 functions.
For the first function, I have to convert an input from gallons to cubic centimeters.
For the second function, I have to convert another input from pounds to grams.
The third function tests those 2 numbers and returns a True or False. My question is, how do I get the new values from function 1 and 2 to run in the third function.
I do not know how to save the result of function 1 as a variable to later use in function 3.
Several things wrong. Line 41 calls an undefined function Test(), looks like it should be goldTest().
At lines 39 and 40 functions convOne() and convTwo() are called, but the returned value is simply thrown away.
It should look something like this:
double number = convTwo(input1);
or use one of the previously-defined variables, like this:
output1 = convTwo(input1);
Also, the variables output1 and output2 are not initialised or assigned any particular value, hence they may contain any random garbage value. At line 41 the two functions convTwo() and convOne() are then called using this garbage data, so the value returned will also be garbage.