Ask your own question, for FREE!
Computer Science 44 Online
OpenStudy (anonymous):

Write a Java program called "InterestCalculater"that do the following: 1). Prompt the user to input principal, interest and loan term. 2). Calculate and display the total interest amount to be paid by the borrower at the end of the loan term. 3). Calculate and display the total amount to be paid by the borrower at the end of the loan term.

OpenStudy (anonymous):

Show me your attempt so far.

OpenStudy (anonymous):

Try something like this: import java.util.Scanner; class GetUserInput { public static void main(String args[]) { int loanTerm; float principalAmount, interestRate; Scanner in = new Scanner(System.in); System.out.println("Enter Principal Amount: "); principalAmount = in.nextLine(); System.out.println("Enter Interest Rate: "); interestRate = in.nextFloat(); System.out.println("Enter Loan Term: "); loanTerm = in.nextInt(); System.out.println(" Principal :"+principalAmount); System.out.println(" Interest Rate :"+interestRate); System.out.println(" Term :"+loanTerm); System.out.println(" Total payoff :"+principalAmount * interestRate * loanTerm); } }

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
midnightriver46: Is anyone learning korean in here?
30 minutes ago 18 Replies 1 Medal
Gucchi: physics
21 hours ago 17 Replies 0 Medals
Gucchi: physics
23 hours ago 10 Replies 0 Medals
gelphielvr: What's the difference between colonization and imperialism
20 hours ago 2 Replies 0 Medals
gelphielvr: I need tips on how to memorize long formulas does anyone have any
4 hours ago 4 Replies 0 Medals
gelphielvr: how do I find the valance electrons? no further info
4 hours ago 1 Reply 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!