logo

The deposit amount and duration were checked

Task 1: Develop a Java program for a local bank called ABC to calculate interest and total balance for term deposits.

9 Pages798 Words10 Views
   

Added on  2022-08-26

The deposit amount and duration were checked

Task 1: Develop a Java program for a local bank called ABC to calculate interest and total balance for term deposits.

   Added on 2022-08-26

ShareRelated Documents
Running head: PROGRAMMING IN JAVA
PROGRAMMING IN JAVA
Name of the Student
Name of the University
Author Note
The deposit amount and duration were checked_1
PROGRAMMING IN JAVA1
Table of Contents
Task 1:........................................................................................................................................2
Tests and Data Validation:.....................................................................................................3
Outputs:..................................................................................................................................4
Task 2.........................................................................................................................................6
The deposit amount and duration were checked_2
PROGRAMMING IN JAVA2
Task 1:
Task one mainly consists of taking inputs like taking deposit amount and duration of
the deposit from the user, validate the correctness of the input, finding out the proper rate as
per the entered deposit amount, calculate interest amount and finally display a bank
certificate containing name of the bank, Client’s name, Deposit amount, Duration, Interest
earned and Final balance.
Initially, in the main method, all the details like client name, deposit amount and
duration of the deposit are taken as an input using the object of Scanner mentioned as sc. The
deposit amount and duration were checked using try catch block to handle any type of
exception and print a proper message on handling the same (Exception) (Asaduzzaman et al.,
2016). Upon taking all the data from the user, rateChecker() method is called to determine the
correct rate of interest that the client can avail against his/her deposit amount (Sharan, 2018).
After the rate is determined, earned interest is calculated next by calling the
calculateInterest() method. In the method, total interest amount is calculated using deposit,
rate and tame then returns the interest to the main method. Finally, the main method calls the
display the certificate in a formatted layout.
The deposit amount and duration were checked_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Major Steps for Solving the Problem
|2
|528
|11

Programming
|5
|531
|69

MN404 - Java Program for Calculates and Displays the Bank Interest for N Bank Accounts
|4
|219
|21

Task 2. 2.2 The main part of the program can use a FOR
|9
|750
|196

NIT5150 The Gym Membership Calculator (Doc)
|6
|638
|45

System Analysis and Design Assignment JHC
|12
|2024
|77