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

  What makes the poorly written job descriptions weak

What makes the poorly written job descriptions weak. What makes the better job descriptions more effective. Respond to each question with a minimum of 250 words.

  Creating an html document

In this assignment you will be creating an HTML document, saving three separate versions of it, one without any CSS, one with CSS applied externally and one with CSS embedded and uploading the documents to the Web

  What is overloaded methods

What is overloaded methods and why is it useful? explain your answer with examples

  Mention why is the mouse cursor slightly tilted

Mention why is the mouse cursor slightly tilted and not straight?

  Design and develop a secure and working prototype

Design and develop a secure and working prototype of database and a website for the aforementioned company in which wants to sell its products online as well as advertising and marketing its professional PCs and laptops' repair services.

  Explain the value of web analytics and the measurable

Create a list of their names and Web sites. Explain the value of web analytics as well as the measurable business value for using conversion metrics.

  The purpose of this project is to develop an application

The purpose of this project is to develop an application for the geologists of the petroleum industry. The platform for the application will be a new technological advancement which is Microsoft Surface 2.0 multi-touch tabletop technology.

  What is the purpose of project management

What is the purpose of project management

  Project - yuc intelligent system

Project - YUC Intelligent System Interface Design Competition (Innovation and Creative System). Working in groups of 5 people (maximum), search any topic from internet to stimulate your idea and creativity

  Use of design principles within virtual organization

Evaluate the use of design principles within the Virtual Organization site using the design criteria developed within the team

  Building an internet site for your small personal business

In this assignment you will be building an internet site for your small personal business or of your academic and personal accomplishments that you can use when you begin your job search and throughout your career or it could be a personal webpage

  Create a page schematic for the home page of the site

Create a page schematic for the Home page of the site/app. Write a brief paragraph summarizing your reflections and findings of how the information architecture affects the usability and user experience of this site/app.

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