Question
Java- Please just use sequence and selection structures to build the logic into the main() method Write a program that opens a Customer Bank Account(s)
Java- Please just use sequence and selection structures to build the logic into the main() method
Write a program that opens a Customer Bank Account(s) and then outputs a formatted (Section 4.6) representation of the Customer's Banking Accounts Information. A customer must open a SAVINGS account if they wish to open a CHECKING Account. Minimum deposit in savings must be $100.01.
get input for: name (first and last), type of account they want to open (Checking or Savings), initial deposit.
use the Math.random() method to generate the bank Account number(s) (refer to section 4.2.5)
set the interestRate based on the initial deposit for Savings account ONLY:
0-$100 (inclusive) -> inital deposit must be over $100.00;
$100.01 - $500 (inclusive) -> interest rate = .035;
$500.01 - $1000 (inclusive) -> interest rate = .045;
anything over $1000.00 -> interest rate = .05.
Math max() method (section 4.2.4): Determine which account (Checking or Savings) has the highest initial deposit.
Output all the account information: name (format to all CAPS - reference table 4.7), account number, type of account (Checking/Savings), initial deposit and a calculation of future balance in 1 year for the Savings account ONLY. Display the account name that has the higher balance (i.e. use the Math max() method).
Example Output:
Name: TERRAIN, HERCULES
Acct: 1234 Checking Acct: 5678 Savings Estimated Savings balance in 1 Year
deposit: $400.00 deposit: $150.00 $226.66
Checking account has the higher initial deposit:
Example Output2:
Name: THRICE, TRINITY
Acct: 0 Acct: 8765 Savings Estimated Savings balance in 1 Year
deposit: $0.00 deposit: $150.00 $156.00
Savings account has the higher initial deposit:
Example Output3:
no accounts opened - initial deposit requirements not met.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started