Question: Using Java: All input AND output should be done using the JOptionPane library A bank in your town updates its customers accounts at the end

Using Java:

All input AND output should be done using the JOptionPane library

A bank in your town updates its customers accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance as follows: --Savings account minimum balance = $2500 -- Checking account minimum balance = $1000 If a customers balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows: -- Savings accounts receive 4% interest (APR). -- Checking accounts with balances of up to $5000 more than the minimum balance receive 3% interest (APR); otherwise, the interest is 5% (APR). Create a new java console application in IntelliJ, and name it program3_YourFirstName_YourLastName. Write a program that reads a customers account number (int type), account type (String type; s or S for savings, c or C for checking REMEMBER: you will use the toUpperCase() or toLowerCase() method to achieve this), and current balance. The program should then output the account number, account type, balance before interest or fees, and new balance.

Create a second class in your program named BankingAcc. This class will have five private member variables to hold the account number, account type, minimum savings balance (final variable), minimum checking balance (final variable), and current balance. It will also have four methods; calcNewBal()(public), calcSavingsBal()(private), calcCheckingBal()(private) and isServiceCharge()(public). the calcNewBal() method is called by the Main class which in turn calls either calcSavingsBal() or calcCheckingBal() depending on the type of account. Also, create Getter and Setter methods for each member variable.

Test your program by running it five times, using the following data: 46728 S 2700 87324 C 7689 79873 s 800 89832 c 3000 98322 C 750

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!