Skip to navigation Skip to content
Animated Logo 500x500 px
  • [email protected]
  • WhatsApp: +1 419 -877-7882
  • Get Quote for Homework Help
  • Home
  • COMPANY
    • ABOUT US
    • CONTACT US
  • SHOP
    • PRODUCTS
    • CART
    • CHECKOUT
    • REFUND POLICY
  • MY ACCOUNT
  • SERVICES
    • Computer Science Assignment Help
      • AJAX Assignment Help
      • Arduino Assignment Help
      • Assembly Language Assignment Help
      • C Assignment Help
      • C++ Programming Assignment Help
      • Standard ML Assignment Help
      • UML Diagram Assignment Help
      • Visual Basic Assignment Help
    • Programming Assignment Help
      • Data Structure Assignment Help
      • HTML Assignment Help
      • Java Assignment Help
      • JavaScript Assignment Help
      • Objective-C Assignment Help
      • Rust Assignment Help
      • Ruby Assignment Help
      • Scala Assignment Help
    • General Assignment Help
      • Database Assignment Help
      • MySQL Assignment Help
      • MATLAB Assignment Help
      • Oracle Assignment Help
      • R Programming Assignment Help
      • Python Assignment Help
      • PHP Assignment Help
      • Perl Assignment Help
  • REFUND POLICY
  • PRODUCT CATEGORIES
  • CONTACT US
  • GET HOMEWORK HELP
  • SHOP
  • MY ACCOUNT
  • SERVICES
  • C++ Programming Assignment
  • Java Assignment Help
  • MATLAB Assignment Help
  • MySQL Assignment Help
  • 0.00 $ 0 items
Home / Programming / Java / [SOLVED] Write a Java program for a simple bank account
ZIPTRE

[SOLVED] Write a Java program for a simple bank account

30.00 $

Categories: Java, Programming Tags: account, bank, for, java,, program, programming, simple, write
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon BankAccount.zip (2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
đź”’ Securely Powered by:
Secure Checkout
  • Description
  • Downloads
5/5 - (1 vote)

You shall define a Customer class. A customer has a first name, last name, and social security number. The social security number is a String variable and must comply with this format: xxx-xx-xxxx where ‘x’ is a digit between 0-9. If a customer is supplied an invalid ssn, a message must be printed that the SSN of the customer is invalid; however, it will create the bank account regardless.

You shall define a BankAccount class. A BankAccount has a customer, account number, and a balance. A bank account can be opened with any amount of initial deposit. For each bank account, a 10 digit random account number must be created. Bank account shall define the following methods: deposit, withdraw. applyInterest, and checkBalance.

Every time there is a deposit or withdrawal, the amount and current balance should be displayed. One cannot withdraw more than the funds available in the account.

You shall define two types of bank accounts: Checking Account and Saving Account. Each account accrues interest. A saving account accrues 5% fixed interest and a checking account accrues 2% for any amount in excess of $10000 (For example, if there is $11000 in the checking account, the interest is only applied to $1000).

You shall define the BankMain class that defines the main method. You can use the “main” method shown below to test your application. The expected output is also provided.

public class BankMain {

public static void main(String[] args) {

CheckingAccount acct1 = new CheckingAccount(“Alin”, “Parker”, “123-45-6789”, 1000.0f);

CheckingAccount acct2 = new CheckingAccount(“Mary”, “Jones”, “987-65-4321”, 500.0f);

SavingAccount acct3 = new SavingAccount(“John”, “Smith”, “1233-45-6789”, 200.0f);

acct1.deposit(22000.00f);

acct2.deposit(12000.00f);

acct1.withdraw(2000.00f);

acct2.withdraw(1000.00f);

acct1.applyInterest();

acct2.applyInterest();

acct1.checkBalance();

acct2.checkBalance();

acct1.withdraw(30000.00f);

}

}

=================== This is the expected output =======================

Successfully created account for Alin Parker Account Number 3364673506

Alin Parker, Balance $1000.0

Successfully created account for Mary Jones Account Number 6221275878

Mary Jones, Balance $500.0

Successfully created account for John Smith. Inavlid SSN!

Successfully created account for John Smith Account Number 7091028094

John Smith, Balance $200.0

Alin Parker deposited $22000.0. Current balance 23000.0

Mary Jones deposited $12000.0. Current balance 12500.0

Alin Parker withdrew $2000.0. Current balance 21000.0

Mary Jones withdrew $1000.0. Current balance 11500.0

Alin Parker, Balance $21220.0

Mary Jones, Balance $11530.0

Unable to withdraw 30000.0 for Alin Parker due to insufficient funds

  • BankAccount.zip

Related products

  • ZIPimages 1

    Project 2 Solution

    15.00 $
    Add to cart
  • salesprograam

    SOLUTION: program that considers a class that keeps track of the sales of an item

    20.00 $
    Add to cart
  • ZIPimages 1

    SOLUTION . Radio GUI Assignment

    25.00 $
    Add to cart

Related in this category

  • PHP Assignment 1- About this Project
  • Programming Project 1- Test Harness
  • Basic Assembly Language Programming
  • Programming Project #5- Processing strings
  • Python Problem Set 0
  • Programming Homework 5-FX Carry Strategy

More in this category

  • winrar

    Lab 5: Forms

    35.00 $
    Add to cart
  • ZIPimages 1

    SOLVED:#Lab 7 Designing Objects

    29.99 $
    Add to cart
  • ZIPimages 1

    SOLVED:Java program that outputs the quantity of prime numbers

    12.99 $
    Add to cart
  • Docx 1

    CREATE DATABASE Star;

    30.00 $
    Add to cart
  • zip

    ASSIGNMENT #1 OPERATING SYSTEM CONCEPTS

    15.00 $
    Add to cart
  • ZIPimages 1

    SOLVED:Application that allows to run a mediateca (media Library),

    49.99 $
    Add to cart
Real Project Samples

Want to See Past Work First?

Browse completed coding, cybersecurity, ML, and report-style project samples before submitting your request.

View Completed Projects Browse Past Solutions →
Fast support • Clear guidance • Student-friendly help
Order Custom Homework
Request Help Now Submit Requirements
Contact Us:

[email protected]

Whatsapp +1 -419-877-7882

All Major Cards Accepted:
all major credit cards 300x118 1
Contact Us for Direct Wire transfers to our Bank (+1 419 877 7882) Whatsapp/Text
AnkitCodingHub

Programming, cybersecurity, AI/ML, automation, and technical learning support for students, developers, and professionals.

Email:
[email protected]

WhatsApp:
+1 419-877-7882

Fast Response Private Support Clear Guidance

📚 What We Do

  • Programming and debugging help
  • Cybersecurity and CTF-style support
  • Malware and security research notes
  • AI and machine learning projects
  • Automation and scripting tools

đź§  Popular Services

  • Python, Java, C/C++, C#, SQL
  • Web development and JavaScript
  • Data science and ML notebooks
  • Technical reports and write-ups
  • Code review and error fixing

đź”— Quick Links

  • About Us
  • Contact Us
  • Submit Homework
  • Sample Projects
  • Our Services
  • Refund Policy

đź’ł Secure Payment

Payments are handled through secure checkout. You approve the quote before work starts.

Major credit cards accepted
Secure Checkout Quote First

📬 Stay Updated

Subscribe for programming tutorials, cybersecurity posts, sample projects, and student support resources.

f 𝕏 in ◎

âš  Disclaimer & Legal

AnkitCodingHub provides tutoring, debugging help, project guidance, reports, and educational technical materials. Use all support responsibly and follow your institution’s policies.

DMCA Protected Trustpilot

🎓 Course Topics

  • CS6035, CS6262, CS6264
  • CS6250, CS6300, CS7639
  • Cryptography and secure systems
  • Computer vision and ML projects
  • Reports, screenshots, and documentation

Need help with programming, cybersecurity, AI/ML, or reports?

Submit your task details, files, deadline, and rubric to get a fast review and quote.

📌 Submit Homework Now

© 2026 AnkitCodingHub | Programming • Cybersecurity • AI/ML • Automation • Reports

Privacy Policy | Terms & Conditions | Refund Policy

© Ankitcodinghub 2026
Built with WooCommerce.
  • My Account
  • Search
  • Cart 0
ZIPTRE
You're viewing: [SOLVED] Write a Java program for a simple bank account 30.00 $
Add to cart