Develop a program with three classes called Bank, Account, and Customer to store
ID: 3638281 • Letter: D
Question
Develop a program with three classes called Bank, Account, and Customer to store account information and customer information of a bank.Bank class can have maximum five accounts and five customers.
Account object can have only one account holder.
Customer class can have maximum two accounts. For the SSN number, you can useany integer value in the project.
Features in program:
Open Account (Initial Balance)
Close Account
Account info (Enter Account Number, Checking or Saving and initial balance)
Customer Info (Name and Address)
Bank Info (Displays all accounts created and balance in bank)
Explanation / Answer
Hi, my friend here is a class i designed before for my class hope this will help u if u couldn`t manage to add what is missing to the code above message me and i will be glad to help u PLEASE RATE import java.util.*; class BankAccount { static Scanner input = new Scanner(System.in); String name, actype; int accNo, bal, amt; BankAccount(String name, int accNo, String actype, int bal) { this.name = name; this.accNo = accNo; this.actype = actype; this.bal = bal; } int deposit() { System.out.print("Enter amount to deposit:"); amt = input.nextInt(); if (amt < 0) { System.out.println("Invalid Amount"); return 1; } bal = bal + amt; return 0; } int withdraw() { System.out.println("Your Balance=" + bal); System.out.print("Enter amount to withdraw:"); amt = input.nextInt(); if (balRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.