Prepare a java program to create a bank account

Assignment Help JAVA Programming
Reference no: EM13699433

You need to prepare a java program to create a bank account

Program: Write a client java program that will use a pre-implemented class BankAccount.java. BankAccount class provides template to create BankAccount objects that represent real world bank accounts. Each bank account object stores it's own balance. The class provides various operations (methods) that can be performed (called) on BankAccount objects including checking balance, deposit and withdraw operations.

Note: You don't need to have the knowledge of the code in the BankAccount class in order to use it in your client program. You should use this pre-implemented class using its API. It must compile with no errors and follow the directions.

For this program you will do the subsequent:

Part 1: Create a new Class named BankAccountTest which will be your client program by right clicking the Project folder and select New à Java class.

Part 2: Create a BankAccount object using the default constructor. Name the object reference as accont1.

Part 3: Print the current balance on the terminal window by calling appropriate method

Part 4: Deposit 1000 dollars into account1 by calling appropriate method

Part 5: Print the current balance on the terminal window by calling appropriate method

Part 6: Withdraw 250 dollars from account1 by calling appropriate method

Part 7: Print the current balance of account1 on the terminal window by calling appropriate method

Part 8: Create another BankAccount object using the other constructor with initial balance as 500. Name the object reference as account2.

Part 9: Print the current balance of the account2 on the terminal window by calling appropriate method.

Part 10: Withdraw 550 dollars from account2

Part 11: Assign account 1 to account 2 ( account2 = account1; )

Part 12: Deposit 50 dollars into account1.

Part 13: Print the current balance of both account1 and account2 on the output window.

Reference no: EM13699433

Questions Cloud

Write a java program that computes and prints the value : Write a Java program that computes and prints the value of 6!/5! using Scanner.
Calculate the volume by formula : Write program in C++ : - write a class VolumeOfBox that calculate the volume by this formula : length * breadth * height this class has three data member ,and the member function which calculates the volume and print the result by using pointer to..
Need to prepare a c++ program of class swap : Class Swap contains tow data members num1 , num2 and member function swapping ,the aim of this function is swapping num1 and num2 values , swapping should done by using pointer , i.e. if num1= 20 and num2 =5 they become : num1= 5 and num2=20.
Implement one class called parking meter : Implement one class called parking meter, that is a simple model of a coin operated parking meter
Prepare a java program to create a bank account : Write a client java program that will use a pre-implemented class BankAccount.java. BankAccount class provides template to create BankAccount objects that represent real world bank accounts
Write a computer program using q basic : You need to write a computer program using q basic with the subsequent information. We just started learning about loop commands but I'm completely lost.
Long-distance communication in a wan infrastructure : How can cables like coaxial and UTP cable be used for long-distance communication in a WAN infrastructure?
Prepare a flowchart chart to print the largest number : Write a flow chart to print the largest of any three numbers - Prepare a flowchart chart to print the largest number.
You are the network administrator for your lan : You are the network administrator for your LAN. You have just captured the network traffic for the last ten minutes and have thousands of packets captured.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd