Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java detail program need with all information CS 2163 JAVA Assignment 5 Assignment worth 40 points You will be creating a small banking program. Sample

java detail program need with all information image text in transcribed
image text in transcribed
image text in transcribed
CS 2163 JAVA Assignment 5 Assignment worth 40 points You will be creating a small banking program. Sample output is listed starting on page 2 . CheckingAccount.java - String data field named uniquelD for the account - uniquelD need to be at least 4 characters long - double data field named acctBalance for the account - acctBalance needs to be at least $500 - double data field named annuallnterestRate that stores the current annual interest rate - Date data field named dateCreated that stores the date when the account was created. - A no-argument constructor that creates a default account. - A constructor that ereates an account with the unique id and initial balance. - Accessor and mutator methods for uniqueID, acctBalance, annuallnterestRate - Accessor method for dateCreated. - toString method that will print the contents of the object. - A method named depositCash that deposits a specified amount to the account. - A method named getDailylntRate() that returns the daily interest rate. - Note: annuallnterestRate is stored as a percentage, for example 2.5%. You need to divide it by 100 . BankApplication.java - Write a test program that asks the user to enter their account number, initial balance, and annual interest rate (assume they enter a valid interest rate, so no error checking). - Display list of options to deposit, check daily interest, check account details, and exit the program. Error checking is required on the following: - uniqueID (>=4 characters) - acctBalance (>=$500) - menu selection portion (needs to be 1,2,3, or 4 ) - deposit amounts (>0) Complete the program and upload the solution files to Moodle: - CheckingAccount.java - RankAnnlicationiava Sample Run: Midpirgt Banking App Enter the unique ID: H12 1!1ERROR: unique IDs are at leaat 4 characters longt!l Enter the unique IDt n1234 Enter the initial baiance; $300 1HIBRROR: new accounts need at leaat 55001 !! Enter the initial balance: $500 Enter the annual interest rate as a percestage: 2.0 1. Deposit 2. View Daily Interest P.ate 3. View Account Detaila 4. Exit Enter your nelection 8 INVALID SELECTION - TRY AGAIN! 1 Enter your deposit amount: 0 1!.BRROR: deposits must be great than \$0:!! Enter your deposit amount: 200 New Balance: $700.00 1. Deposit 2. View Daily Interest fate 3. View Account Details. 4. Rxit Enter your selection 2 Your Daily Interest Amount is 3.0.04 OPtions Beton = 1. Deposit 2. View Daily intereat Rate 3. View Account Details 4. Exit Enter your melection 3 Account Unique ID: nt234 Account Creation Date/Tine: Sun Oct 30 11a19:22 cer 2022 Balance: $700.0 Dally Interest Anount: $0.04 1. Deporit 2. View Daily interest P.ate. 3. View Account Detaili 4. Exit Enter your selection 4 Sample Run: Midrlise Banking App Enter the unique ID: n12 tIIERROR: unique 10 are at least 4 characters longt!! Enter the unique ID: n1234 Encer the initial balance1 $300 1!!ERRoR: new accounta need at least $50011! Enter the initial balance: $500 Enter the annaal Interest rate as a percentage; 2.0 1. Deposit 2. Vien DaLly Interest fate 3. View Account Detaila 4. Exit Enter your delection 8 INVALID SELECHION - TRY AGAIS? 1 Enter your deposit amount: 0 1!!ERROR: deposits nost be grest than soll! Enter your deposit anount: 200 New Balance: $700.00 1. Deposit 2. View Daily Interest Rate 3. View Aecount Decald: 4. Exit. Enter your selection 2 Your Daily Incerest Rmount in $0.04 OPTIONS BRLOW 1. Deposit 2. View Daily Incerest Date 3. View Account Details 4. Exit Enter your selection 4

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

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions