Computer Applications
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.
Values & Data Types Java
23 Likes
Answer
double interestAmount = balanceAmount * rate;
Answered By
13 Likes
Related Questions
Provide the declaration for two variables called xCoordinate and yCoordinate. Both variables are of type int and both are to be initialised to zero in the declaration.
Explain the statement, "a well-documented code is as important as the correctly working code".
What is variable initialisation in Java? What are the default values of the following type of variables? short, int, long, float, double, and char.
How can you write single line comments in Java?