ICSE Class 10 Computer Applications Question 19 of 25

Values and Data Types — Question 19

Back to all questions
19
Question

Question 19

Write a Java assignment statement that will set the value of the variable interestAmount to the value of the variable balanceAmount multiplied by the value of the variable rate. The variables are of type double.

Answer
double interestAmount = balanceAmount * rate;