Define the gui and should be hand-coded

Assignment Help JAVA Programming
Reference no: EM131597895

The program should consist of three classes. The first class should define the GUI and should be hand-coded and notgenerated by a GUI generator. In addition to the main method and a constructor to build the GUI, event handlers will be needed to handle each of the five buttons shown above. When the Withdraw button is clicked, several checks must be made.

2022_Figure.jpg

The first check is to ensure the value in the text field is numeric. Next a check must be made to ensure the amount is in increments of $20. At that point an attempt to withdraw the funds is made from the account selected by the radio buttons. The attempt might result in an exception being thrown for insufficient funds, If any of those three errors occur a JOptionPane window should be displayed explaining the error. Otherwise a window should be displayed confirming that the withdrawal has succeeded. When the Deposit button is clicked the only necessary check is to ensure that the amount input in the textfield is numeric. Clicking the Transfer button signifies transferring funds to the selected account from the other account. The checks needed are to confirm that the amount supplied is numeric and that there are sufficient funds in the account from which the funds are being transferred. Clicking the Balancebutton will cause a JOptionPane window to be displayed showing the current balance in the selected account. The Quit button exits the programs. Additionally, a text box box must display your name with a greeting.

The main class must contain two Account objects, one for the checking account and another for the savings account.

The second class is Account.It must have a constructor plus a method that corresponds to each of the four buttons in the GUI. It must also incorporate logic to deduct a service charge of $1.50 when more than four total withdrawals are made from either account. Note that this means, for example, if two withdrawals are made from the checking and two from the savings, any withdrawal from either account thereafter incurs the service charge. The method that performs the withdrawals must throw an InsufficientFunds exception whenever an attempt is made to withdraw more funds than are available in the account. Note that when service charges apply, there must also be sufficient funds to pay for that charge.

The third class is InsufficientFunds, which is a user defined checked exception.

Be sure to follow good programming style, which means making all instance and class variables private, naming all constants and avoiding the duplication of code. Furthermore you must select enough scenarios to completely test the program.

Reference no: EM131597895

Questions Cloud

Market demand and supply functions : Suppose the market demand and supply functions are QD = 220 - 1.6P and QS = 4P - 116. You have just graduated and moved to this city
Determine employee layoffs can affect other employees : Imagine that you are a manager of the HR department of a company and you are required to lay off one of your employees.
What is the contribution to this bond duration in years : What is the contribution to this bond’s duration, in years, of the 5th coupon payment?
What is the firm optimal capital structure : Based on the information below, what is the firm’s optimal capital structure?
Define the gui and should be hand-coded : Define the GUI and should be hand-coded and notgenerated by a GUI generator - When the Withdraw button is clicked, several checks must be made.
Regression results and the other computations : Using the regression results and the other computations from Assignment 1, determine the market structure in which the low-calorie frozen
Assignment is about the balance sheet of bank : The assignment is about the balance sheet of a bank, how different it is from the balance sheet of a non-financial company etc
Determinants of exchange rate changes : With regards to the determinants of exchange rate changes, how does the Mundell-Fleming model and the monetary approach to exchange rates differ?
Compare and contrast the command economy : Compare and contrast the command economy, the capitalist economy, the traditional economy and the mixed economy.

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