Question: Create another method named compare _ gain which must receive two gain values as floats. If the first gain parameter's value is the greater value,
Create another method namedcomparegainwhich must receive two gain values as floats. If the first gain parameter's value is the greater value, the method must display "The first gain is greater." on the console window. If the second parameter has the greater value, then the function must display "The second gain is greater." Otherwise, it should display "The gains are equal." if the values are equal.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
