Problem • Define a class Bank . This may be the only class in your program with main() method. • You may place all the codes in the main(). • Your program will do the following: 1. Display...




Problem







• Define a class
Bank. This may be the only
class in your program with main() method.







• You may place
all the codes in the main().







• Your program will do the following:







1.


Display
meaningful instructions to ask user to enter the balance for the
Checking

account, the interest rate, the duration in years and then to perform the
following operations:







·


Calculate
the simple interest for that duration







·


Display
the result of the enquiry meaningfully (Note: monetary values should display
only two digits after the decimal point in all displays)







2.


Display
meaningful instructions to ask user to enter the balance for the
Savings

account, the interest rate, the duration in years and then to perform the
following operations:







·


Calculate
the simple interest for that duration







·


Display
the result of the enquiry meaningfully







3.


Display
a
bank statement
showing the name of the bank of your choice, the
balances and the interest earned for each account meaningfully. Make sure the
displays are well formatted and look professional.







• It is recommended that you use a Scanner object to
read in user input and use System.out.print / println / printf to display and
format the outputs.








Submission







Your assignment
must be submitted on Canvas. You are required to submit a single zip file
called A1- FirstnameLastname.zip, e.g., my submission will be called
A1-CharlotteTang.zip) containing both of the following files:









a) the source file (.java file)









b) the compiled file (.class file)








Other Requirements







At the beginning of your source code, you are required
to include documentation similar to the following.







/** * Assignment 1: The Bank class …







* Issues: (if any)







* @author charlottetang







* @version 1.0







*/

Sep 15, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here