Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago