Question: public static void calculateInterest(double bal. double rate) [ double interest: interest bal rate: System.out.println(Simple interest on S + bal + at + rate + %
public static void calculateInterest(double bal. double rate) [ double interest: interest bal rate: System.out.println("Simple interest on S" + bal + at + rate + % rate is + interest): 3 In the above code, what would happen if calculate Interest was passed the values of 100 for the bal and 10 for the interest rate? What would happen if calculate Interest was passed the values of 100 for the bal and 10 for the interest rate? Why is it a problem when these values are passed to the calculate Interest method? Write code to suggest a possible solution to fix the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
