Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, this program is to be completed through Eclipse Compiler for Java . This is an intro course so please only use intro methods .

Hi, this program is to be completed through Eclipse Compiler for Java .
This is an intro course so please only use intro methods .
Using the Notes as the suggested guide lines .
Include a copy of the input data aswell as well as what output data should look like .
Thanks a ton . image text in transcribed
image text in transcribed
Homework-Topic 7-Bank Accounts You have been hired as a programmer by a major bank. Your fing project is a small banking nution system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, and balance inquiries. Initially, the account information of existing cusomers is to be read into a pair of paallel arays-one for account numbers, the other for balances. The bank can handle up to MAX NUM accounts Use the following method te read in the data valuers: public static int zeadAcets (int11 acctnum, doublel balance. int max acets This method fills up the account number and ballance arrays (up to max accts) and returms the actual number of accounts rcad in (later refemed to as sum accts) After initialization, the main program prints the initial database of accounts and balances Use method printAccts described below The program then allows the user to select from the follewing monu of transactions Select one of the following W-Withdrawal D-Depo N-New account B- Balance Q-Quit X- Delete Account-Extra Credit Use the following method to produce the menu public static void menu This method only displays the menu. The main program then prompts the selection You should verify that the user has typed in a valid selection (otherwise print out an error message and repeat the peoege) Once the user has entered a selection, one of the following methods should be called to perform the specific transaction. At the end, before the user quits, the program prints the final contents of the acceunt and balance arrays public static int findAcct (int 1 acctnum. int nu accts. int account) This method returns the index of account the acctnum array if remaining methods account cusand-lft doesnt. It is called by all the publie static void withdrawal (intIl acet.num, doublel] balance, int num accts)i This method prompts the user for the account number. Ifthe account does not eust, prnts an emer message. Otherwuse, it aks the user for the amount of the withdrawall. If the account does not coetain sufficient funds, it an erroe message and does not perform the transaction. pubic statie void deposit (int[1 acetnum, doublell balance, int num acets) This method prompts the user for the account number. If the account does not exist, it prints an emor message Otherwise, it asks the user for the amount of the deposit public static int newAcet (int t1 acetnum, doublell balance. ist num acets) This method prompts the user for a new account number. Ifthc account already custs. printsamemor message. 0herwisc, it a kls the account o the acctnum array with an innial balance of 0.returns the ew Buber of accouts. public static void balance (int1 acctnum, doublell balance. int num accts) This methed prompts the user foe an account number. If the account does not exist, it prints an enor message. Ocherwise, it prints the account balance public static vold printAccts (int1 acctnum, doublet) balance, int num acets) This method prints all customer information--account number and balance

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

Design a health and safety policy.

Answered: 1 week ago