Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a java program that runs on eclipse that has 3 classes The first class is Main, the second class is NormalAccount, and the third

create a java program that runs on eclipse that has 3 classes The first class is Main, the second class is NormalAccount, and the third class is PrivilegedAccount. After you have created these three classes you are expected to implement a program that helps a bank customer initialize his/her account from the console.

NormalAccount, and PrivilegedAccount are classes that initialize objects of type NormalAccount or PrivilegedAccount. Normal Accounts are for balances that are under $100,000 Privileged Accounts are for balances that are $100,000 OR over. From your main class (which should contain the following):

1- Welcome the user

2- Introduce the system

3- Ask if the user would like to open a new bank account

4- If the user inputs yes

5- Ask the user for the initial amount to input

6- If the amount is $100,000 or greater; create an account object of type PrivilegedAccount

7- If the amount is less than $100,000 create an account object of type NormalAccount

8- After that you must ask for the name of the user, so that we know who the owner is

9- Ask the user how many transactions per month are expected (utilize a switch statement) for this part).

a. If the number of expected transactions per month is less than 30 output the monthly charge for the account is $10.

b. If the number of expected transactions per month is 30 OR more than 30 output the monthly charge for the account is $100.

10- After that you simply have to output the account type, owner name, account balance, and the monthly charge associated with the account.

NormalAccount and PrivilegedAccount will both have the following attributes that you must initialize:

Double accountBalance;

String ownerName;

String accountType; //this is simply to output

Double monthlyCharge; As for the operations both classes must have the following operation:

getDetails()

{ returns accountBalance, ownerName, accountType, monthlyCharge; }

Utilize constructers where it is necessary, and you can split up the getDetails() method however you like must run on eclipse. must be commented

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 Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

LO3 Name the seven categories of HR functions.

Answered: 1 week ago