Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I would like an original code not a copy of something already submitted please.

I would like an original code not a copy of something already submitted please.

Thanks

1CMIS 242 – Project 21. SpecificationThe second project involves writing a program that implements an ATM machine. The interface to the programshould be a Java Swing GUI that looks similar to the following:The program should consist of three classes:P2GUI, AccountandInsufficientFundsException.1. ClassP2GUIshould define the GUI and should be hand-coded and not generated by a GUI generator. ClassP2GUI must contain twoAccountobjects, one for the checking account and another for the savings account. Inaddition to the main method and a constructor to build the GUI, event handlers will be needed to handle each ofthe four buttons shown above.When theWithdrawbutton is clicked, an attempt to withdraw the funds is made from the accountselected by the radio buttons. The attempt might result in an exception being thrown for insufficientfunds. In this situation, aJOptionPanewindow should be displayed explaining the error.When theDepositbutton is clicked the specified amount should be deposited into the selected account.Clicking theTransferbutton signifies transferring funds to the selected account from the other account.The transferred amount should be multiple of 10 dollars. The attempt might result in an exception beingthrown for insufficient funds. In case of any error involving the transfer operation, aJOptionPaneshouldbe displayed explaining the error.Clicking theBalancebutton will cause aJOptionPaneto be displayed showing the current balance in theselected account.Beside the specific checks indicated for each operation, the program should also check that all user inputtedamounts are valid numeric values. Also, as a result of successful execution of the Withdraw, Deposit and Transferoperations, an acknowledge message will displayed in aJOptionPanewindow.2. ClassAccountmust have a constructor with one parameter representing the initial deposit plus four methodsthat correspond to each of the four buttons in the GUI. It must also incorporate logic to deduct a service charge of$1.75 when four total withdrawals are made from either account. Note that this means, for example, if onewithdrawal is made from the checking and two withdrawals are made from the savings, any withdrawal fromeither account thereafter incurs the service charge. After the charge, the counter of withdrawals is reset. Themethods that perform the withdrawals and transfers must throw anInsufficientFundsExceptionwhenever an
Background image of page 1
2attempt is made to withdraw or transfer more funds than are available in the account. Note that when servicecharges apply, there must also be sufficient funds to pay for that charge.3.InsufficientFundsExceptionis a user defined checked exception class.Your program should compile without errors.The Google recommended Java style guide (https://google.github.io/styleguide/javaguide.html) should be used toformat and document your code. Specifically, the following style guide attributes should be addressed:Header comments include filename, author, date and brief purpose of the program.In-line comments used to describe major functionality of the code.Meaningful variable names and prompts applied.Class names are written in UpperCamelCase.Variable names are written in lowerCamelCase.Constant names are in written in All Capitals.Braces use K&R style.In addition the following design constraints should be followed:Declare all instance variables privateAvoid the duplication of codeTest cases should be supplied in the form of a table with columns indicating what aspect is tested, the inputvalues, expected output, actual output and if the test case passed or failed. This table should contain 5 columnswith appropriate labels and a row for each test case. Note that the actual output should be the actual results youreceive when running your program and applying the input for the test record. Be sure to select enough differentscenarios to completely test the program.2. Submission RequirementsSubmit the following to the Project 2 assignment area no later than the due date listed in your LEO classroom.1. All.javasource files (no other file types should be submitted). The source code should use Java codeconventions and appropriate code layout (white space management and indents) and comments. All submittedfiles may be included in a .zip file.2. The solution description documentP2SolutionDescription(.pdf or .doc / .docx) containing the following:(1) Assumptions, main design decisions, error handling;(2) Test cases table(3) Screen captures showing successful program compilation and test cases execution. Each screen capture shouldbe properly labeled, clearly indicated what the screen capture represents.(4) Lessons learned from the project;
Background image of page 2

Show 

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"