write a program the computes nx and store the result into y You can use y = Math.pow( Mantissa, exponent) Requirements: Besides main() your program must have one method with two parameters, one double and one int n and x are positive numbers read from the keyboard if the user makes an entry that does not meet this criterion, the user must be given to opportunity retry the entry the user must be able to quit prior to entering values for n and x Your method must compute y and return the result to its caller; the caller will print the result After printing the result, the user must be queried again if there are other values to compute; if the answer is no exit the program, but if the user replies yes, then repeat the computation
write a
You can use y = Math.pow( Mantissa, exponent)
Requirements:
Besides main() your program must have one method with two parameters, one double and one int
n and x are positive numbers read from the keyboard
if the user makes an entry that does not meet this criterion, the user must be given to opportunity retry the entry
the user must be able to quit prior to entering values for n and x
Your method must compute y and return the result to its caller; the caller will print the result
After printing the result, the user must be queried again if there are other values to compute; if the answer is no exit the program, but if the user replies yes, then repeat the computation
Step by step
Solved in 4 steps with 1 images