Create the ATM application that implements the following functions: Deposits to one of the accounts (saving,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create the ATM application that implements the following functions: Deposits to one of the accounts (saving, checking) Wthdraws from one of the accounts (saving, checking) Displays the balances Writes a new balance to a log file each time the transaction completed succesfully The form is made of multiple pages (by using TabControl) and looks like shown below: ATM Checking Savings Amount: Select Action Deposit Withdraw Submit Balance Clear Exit X Programmed by Firstname Lastname ATM Checking Savings Transaction Type O Deposit O Withdraw Amount: a. Submit b. 2. Deposit and Withdraw C. Balance Implementation Requirements 1. Include all the user interface conveniences Clear Exit a. keyboard access keys; b. AcceptButton (to work with Submit) and CancelButton (to work with Clear); c. setting the tabs for natural tabbing order and opening with focus in Amount text box; d. resetting the focus in Clear. Programmed by Firstname Lastname X There are four methods that are not event handlers: to deposit to checking; to withdraw from checking; to deposit to saving; to withdraw from saving. Radio Buttons in a Group Box are used for a transaction type (Deposit, Withdraw). Those methods check that: the user entered a number into the text box for the amount. Use Try/Catch (or TryParse) for this. the number entered was positive. An If statement is used to do this. If the user did not enter a correct value, a message box should pop up instructing the user to enter a positive number. Also, the Clear () method should be called whenever a message box is displayed with an error, so that the user can restart entering values: textBoxName.Clear(). Withdraw has to check that there are sufficient funds in whichever account is being withdrawn from. Again, if not, display an appropriate message box and call Clear (). DO NOT SUBTRACT ANYTHING FROM THE ACCOUNT IF THERE ARE INSUFFICIENT FUNDS AND DO NOT CHANGE THE BALANCES. Try/Catch can be used to check for nonnumeric or blank text. d. All checks in these methods that are done with if statements should be done with a series of nested if statements. If more than one message box pops up, you've done the checks one after another instead of nesting them. e. If the transaction (deposit, withdraw) was completed successfully then write the message to the file, e.g., "Deposited: $xx.xx New balance: $xx.xx". Hint: think about using class-level variables (balances, file objects) 3. Balance label Create a method DisplayBalances () which is not an event handler. a. DisplayBalances () will display both balances in the labels created for this purpose. The balances should be formatted as currency before being displayed. b. If all the checks are completed satisfactorily, Deposit and Withdraw change the balances according to the user's choice and call DisplayBalances () from within their methods to display the balances. In other words, instead of writing the code to display the balances again at the end of Deposit and Withdraw, just call the DisplayBalances () 4. Submit button a. Once the user has made a valid entry, then Deposit and Withdraw check that the user has chosen one of the radio buttons and, if not, display an appropriate message. 5. Clear button The event handler(s) will clear the Amount text box and set the focus back in the Amount text box. Do not clear the labels that display the balances. Do not clear the radio buttons either, since if there was an error the user may still want the same choice. 6. Run through the program a couple of times using and clearing the form. Try all types of entries. See what happens if you enter nonnumeric data, if you don't check an option button, if there are insufficient funds, etc. See if your balances are what you'd expect. Test thoroughly. 7. Follow good naming conventions for object names. Include comments at the top of every method and in the declaration section at the top of the form. 8. Have the form appear in the middle of the screen when the program is run. Arrange the controls on the form in a neat and aesthetically pleasing way. Don't use garish colors. Keep the background neutral. Create the ATM application that implements the following functions: Deposits to one of the accounts (saving, checking) Wthdraws from one of the accounts (saving, checking) Displays the balances Writes a new balance to a log file each time the transaction completed succesfully The form is made of multiple pages (by using TabControl) and looks like shown below: ATM Checking Savings Amount: Select Action Deposit Withdraw Submit Balance Clear Exit X Programmed by Firstname Lastname ATM Checking Savings Transaction Type O Deposit O Withdraw Amount: a. Submit b. 2. Deposit and Withdraw C. Balance Implementation Requirements 1. Include all the user interface conveniences Clear Exit a. keyboard access keys; b. AcceptButton (to work with Submit) and CancelButton (to work with Clear); c. setting the tabs for natural tabbing order and opening with focus in Amount text box; d. resetting the focus in Clear. Programmed by Firstname Lastname X There are four methods that are not event handlers: to deposit to checking; to withdraw from checking; to deposit to saving; to withdraw from saving. Radio Buttons in a Group Box are used for a transaction type (Deposit, Withdraw). Those methods check that: the user entered a number into the text box for the amount. Use Try/Catch (or TryParse) for this. the number entered was positive. An If statement is used to do this. If the user did not enter a correct value, a message box should pop up instructing the user to enter a positive number. Also, the Clear () method should be called whenever a message box is displayed with an error, so that the user can restart entering values: textBoxName.Clear(). Withdraw has to check that there are sufficient funds in whichever account is being withdrawn from. Again, if not, display an appropriate message box and call Clear (). DO NOT SUBTRACT ANYTHING FROM THE ACCOUNT IF THERE ARE INSUFFICIENT FUNDS AND DO NOT CHANGE THE BALANCES. Try/Catch can be used to check for nonnumeric or blank text. d. All checks in these methods that are done with if statements should be done with a series of nested if statements. If more than one message box pops up, you've done the checks one after another instead of nesting them. e. If the transaction (deposit, withdraw) was completed successfully then write the message to the file, e.g., "Deposited: $xx.xx New balance: $xx.xx". Hint: think about using class-level variables (balances, file objects) 3. Balance label Create a method DisplayBalances () which is not an event handler. a. DisplayBalances () will display both balances in the labels created for this purpose. The balances should be formatted as currency before being displayed. b. If all the checks are completed satisfactorily, Deposit and Withdraw change the balances according to the user's choice and call DisplayBalances () from within their methods to display the balances. In other words, instead of writing the code to display the balances again at the end of Deposit and Withdraw, just call the DisplayBalances () 4. Submit button a. Once the user has made a valid entry, then Deposit and Withdraw check that the user has chosen one of the radio buttons and, if not, display an appropriate message. 5. Clear button The event handler(s) will clear the Amount text box and set the focus back in the Amount text box. Do not clear the labels that display the balances. Do not clear the radio buttons either, since if there was an error the user may still want the same choice. 6. Run through the program a couple of times using and clearing the form. Try all types of entries. See what happens if you enter nonnumeric data, if you don't check an option button, if there are insufficient funds, etc. See if your balances are what you'd expect. Test thoroughly. 7. Follow good naming conventions for object names. Include comments at the top of every method and in the declaration section at the top of the form. 8. Have the form appear in the middle of the screen when the program is run. Arrange the controls on the form in a neat and aesthetically pleasing way. Don't use garish colors. Keep the background neutral.
Expert Answer:
Answer rating: 100% (QA)
csharp using System using SystemIO using SystemWindowsForms public class BankingApplication Form Classlevel variables private decimal checkingBalance ... View the full answer
Related Book For
Integrated Accounting
ISBN: 978-1285462721
8th edition
Authors: Dale A. Klooster, Warren Allen, Glenn Owen
Posted Date:
Students also viewed these programming questions
-
8(+)[c] The charge on a circuit element is given by: q(t)=0 fort <0 q(t)=10(1-e) fort>=0 a) Sketch q(t) for the range 0 0. Bx your equation for i(t). .02 .04 '+[s] .06
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A small consulting company wants to make the switch to QuickBooks Online. All of their expenses are paid at the time they are incurred, so there is no need to track bills in the system. There is only...
-
On January 1, 2019, Chiz Company acquired equipment to be used in its manufacturing operations. The equipment has an estimated useful life of 10 years and an estimated residual value of P50,000. The...
-
A 70.0-kg diver steps off a 10.0-m tower and drops straight down into the water. If he comes to rest 5.00 m beneath the surface of the water, determine the average resistance force exerted by the...
-
Espasso SA has just finished production of Tornado, the latest action film directed by Domingos Vieira and starring Arnaldo Moura and Victoria Rebello. The total production cost to Espasso was 5...
-
The industry standard for balanced voltages in three phase systems is 2%. When the output data is taken on a VFD, the voltages are not easily read. What should be the current imbalance based on a...
-
Find the interest rate (or rates of return) in each of the following situations. a. You borrow $700 and promise to pay back $749 at the end of 1 year. b. You lend $700 and receive a promise to be...
-
3. A Channel section is connected to a 10mm gusset plate with 20mm- diameter bolts as shown in the figure. The connecting member is subjected to dead load and live load only. The pitch distance,...
-
A survey of families living in a certain city was conducted to collect information on the following variables: age of the oldest person in the family, number of family members, number of males in the...
-
Find the one-sided limit (if it exists). (If the limit does not exist, enter DNE.) lim x-(1/2)* 4x tan x
-
what is social development resource are applies in human and how to you can describe the answers in social working
-
You only have 500 words or so to work with in the HW assignment (Roche case study) and you can summarize the article a little bit to provide context. The bulk of the case study report should focus on...
-
Define Organizational Culture, describe the key functions of Value Chain, and explain the four line functions that includes Human Resource Management.
-
Two shafts, each of 65 mm diameter, are connected by the gears shown. The shaft at A is fixed and G is 77 GPa. Knowing that a torque T = 1000 N-m is applied at D. determine (a) the maximum shearing...
-
Is there any resource that you could consider as a distinctive competence for Yunnan Lucky Air?
-
What is Coarse or Acquisition (C/A) Code?
-
Using thermodynamic data from Appendix 4, calculate G at 258C for the process: 2SO 2 (g) + O 2 (g) 88n 2SO 3 (g) where all gases are at 1.00 atm pressure. Also calculate DG8 at 258C for this same...
-
Write the answers to the following questions in the space provided. Fixed Assets 1. What is the salvage value of Asset Number 120 (Facsimile Machine)? 2. What date was Asset Number 230 (Conveyor...
-
Step 1: Start up Integrated Accounting 8e. Step 2: Load opening balances file IA8 Problem 03-A. Step 3: Enter your name in the Your Name text box and click OK. Step 4: Save the file with a file name...
-
How can a company improve its debt ratio?
-
The control volume shown in Figure \(P 2.15\) has steady, incompressible flow, and all properties are uniform at the inlet and outlet. For \(u_{1}=1.256 \mathrm{MJ} / \mathrm{kg}\) and...
-
(a) List the forces exerted on the spring-cart system of Figure 15.1 right after it is released, and draw a freebody diagram for each object in the system. (b) Which of these forces do work on the...
-
(a) In Figure 15.2e, the cart's displacement from the equilibrium position is maximum. Is the \(x\) component of the cart's acceleration at that instant positive, negative, or zero? (b) At which...
Study smarter with the SolutionInn App