Question: JAVA: Write some code that first takes in input the value of the bank account, then the value of the interest rate. Print out how
JAVA:
Write some code that first takes in input the value of the bank account, then the value of the interest rate. Print out how much th a
Goal: Learn how to use typecasting.
Assignment: Given two variables and and two weights and the weighted average between and is given by:
Assuming the int variables n m wn wm have been defined and initialized, and that the double variable weightedAverage has been declared,
write a statement that assigns to weightedAverage the weighted average between n and m
Expected output:
Givens
Actual output:
nequal to
Givens
merequal to
nequal to
mequal to
mequal to
win.equal to
whequal to
theweightedAverageis
vinequal to
the meightedAverage is ccount will be worth in one, two, and three years, each on a separate line.
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
