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

  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

  Deploy the website with some free web hosting service

Develop a multimedia Website with text, still images and video elements. It is optional to deploy the Website with some free Web hosting service.

  Insert an xml prolog at the top of the file

Go to the gargoyle.htm file in your text editor, and then insert an XML prolog at the top of the file. Use the standard attribute defaults for an XHTML file.

  Describe the web-based information technologies

Describe the Web-based information technologies (protocols, policies, tools) behind electronic health care medical records.

  Create a website that showcases the skills

You will create a website that showcases the skills you have gained throughout your psychology program. Your website will consist of the following elements: a homepage, a literature review, expert opinions, résumés, a case study, and a list of pe..

  Define the internet and multimedia technology

What are the major characteristics of a modern multimedia system. What is the most important characteristic in your opinion. Multimedia is the latest development in the abstraction of human intercourse that began with the stylized cave paintings of ..

  Creat and test an html documents that has at least half page

Creat and test an html documents that has at least a half page of text and a small box of text embedded on the left margin with main text flowing around the small box.

  Replacing elements through style attribute

The style attribute is replacing some elements in always evolving HTML world. Many features that were implemented using elements in older versions of HTML are implemented using the style attribute.

  Case study on usability of ipads and websites

The following report must be used for reference to complete this assignment. The Nielsen Norman Group published a report titled, "Usability of iPads and Websites." The report is a case study of the iPad usability

  What is the difference between the client and the server

What is the difference between server-side and client-side scritping? Why are they separate?

  Summary on sensing vehicle dynamics

I need summary Sensing Vehicle Dynamics for Determining Driver Phone Use. Defining Robustness to Real-Road Driving Environments.

  What best practices should a development manager use

What occurs during the coding activity of the development phase? What best practices should a Development Manager use when the project enters the Coding Phase

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