Create a gui with at least one button and several textfields

Assignment Help Web Project
Reference no: EM131028716

1. Give an example of a program that creates a GUI with at least one button and several textfields. Some of the textfields should be for input and others for output. Make the output textfields uneditable. When the button is clicked, the input fields should be read, some calculation performed and the result displayed in the output textfield(s).

2. The second project involves writing a program that implements an ATM machine. The interface to the program should be a GUI that looks similar to the following:

The program should consist of three classes. The first class should define the GUI and should be hand-coded and not generated 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 four buttons shown above. When the Withdraw button is clicked, several checks must be made. 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 Balance button will cause a JOptionPane window to be displayed showing the current balance in the selected account. 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.

Please include test plan, lessons learned, and possible improvements.

Reference no: EM131028716

Questions Cloud

Determine the fees billed to customers on account : On October 1, theaccounts receivable account balance was $115,800. During October, $449,600 was collected from customers on account. Assuming the October 31 balance was $130,770 determine the fees billed to customers on account during October.
Problem regarding the cash dividends : Kerry Company has 1,000 shares of $100 par value, 9% preferred stock and 10,000 shares of $10 par value common stock outstanding. The preferred stock is cumulative and nonparticipating. Dividends were paid in 2010. Since 2010, Kerry has declared a..
Compensation insurance for the year : Sunny Hills Farm estimated its payroll for the coming year to be $102,000. Its workers' compensation insurance premium rate of 0.6% is paid at the beginning of each quarter.
Electronics firm produces two models of pocket calculators : An electronics firm produces two models of pocket calculators: the A brand which is an inexpensive calculator, and a B brand which has more advanced features. Each model use one (and the same type) circuit board, of which there are only 2,500 availab..
Create a gui with at least one button and several textfields : Give an example of a program that creates a GUI with at least one button and several textfields. Some of the textfields should be for input and others for output. Make the output textfields uneditable.
Analyze your chosen character personality using onetheorist : Write a 1,050- to 1,400-word paper in which you analyze your chosen character's personality using onetheorist or theory from each of the following columns:
Journal entry to record the purchase of the property : Prepare the journal entry to record the purchase of the property, including all expenditures. Assume that all transactions were for cash and that all purchases occurred at the start of the year
Answer true or false for each question : A population forms a normal distribution with µ=80 and o=10. In this population, 42.07% of the scores greater than x=78.

Reviews

Write a Review

Web Project Questions & Answers

  Determining the throughput

A group of stations share a sixteen kbps slotted Aloha channel. Each station outputs a eighty Bytes frame and buffers any outgoing frames until they can be sent.

  Create an android project

Design and create an application which will allow the user to calculate an IPv4 subnet range. The user must be able to enter a IPv4 address and subnet mask.

  Develop a word-guessing game

Develop a word-guessing game, like Hangman. The game will have two users, Person A and Person B. While B isn't looking, Person A will input a word up to a specified appropriate maximum length. The word that has been input should contain only lette..

  Define web-based input for making a hotel reservation

Design and build a graphical representation of a Web-based input for making a hotel reservation, using Visio or PowerPoint or an equivalent.

  Describe and assess the evaluation method

Describe and assess the evaluation method being used by the testing company, i.e., nonvisual and verbal recording of browser activities and tester's vocal comments.

  Critical analysis of cloud computing offerings

Critical analysis of cloud computing offerings -  Compare the different Cloud Computing Offerings - an introduction describing the content of the report

  What is the special function of a constructor

What is the special function of a constructor? How must you implement its functionality? (What is this process?) What is the difference between a simple and a complex custom object?  When might a constructor come in handy? Have you ever used a form t..

  Develop a website by using netbeans ide

Please be noted that I won't accept the answer if it's not answered 90% correctly"!!!!!! So this is my coursework which require me to develop a website by using Netbeans IDE and there are two files which I attached below, and named properly as well w..

  What are some strategies used to manage large sound files

What are some strategies used to manage large sound files in web applications (streaming, buffering, compression, etc.)?

  The presented project is acceptable

1) Your design team presents a project to you, in which most inputs seem to have about a 1.5-second delay before a response. The lead designer has decided this response is acceptable. Analyze response-time models and decide if the response time in th..

  Summarize the insights you gained about cro

Summarize the insights you gained about CRO and LPO on the basis of the article you selected. Summarize the information presented in each of the articles you selected

  Eliminate the default spacing around all elements

Provide spacing at the top of the level-one heading in the header to the equivalent of one capital M without affecting the spacing of the image. Set the font size for the level-one heading in the header to three times the browser's default font siz..

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