You will create a program to simulate an ATM banking machine. Your program will generate a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You will create a program to simulate an ATM banking machine. Your program will generate a random PIN code consisting of 4 digits, i.e. 3270, 0063, 0917, etc. It will also generate a random available balance from 1000 - 20000 QAR. The user will be asked to enter his PIN code. He will be allowed 3 incorrect attempts before the program stops. If the PIN code is correct, the user will be shown a menu where he can choose one of the following actions: . check balance • withdraw amount • deposit amount When checking the user's balance, the program should print the actual balance. If the user chooses to withdraw an amount, the program will ask the user how much he wants to withdraw and then process the request by removing it from the balance and showing the new balance. If the amount is more than the available balance, the program will show an error message and ask the user to specify a new withdrawal amount. When the user chooses to deposit an amount, the program will ask the user to specify the deposit amount and then adds that amount to the available balance and show the new balance after deposit. Upon completing any of these operations, the user will be asked to choose a new operation if desired. You should presume that software users have no prior technical knowledge and might not always enter data inside the desired range. Ensure to provide assistive prompts to guide a new or confused user as to how the program is expected to work. Your programs should never terminate abruptly. You will create a program to simulate an ATM banking machine. Your program will generate a random PIN code consisting of 4 digits, i.e. 3270, 0063, 0917, etc. It will also generate a random available balance from 1000 - 20000 QAR. The user will be asked to enter his PIN code. He will be allowed 3 incorrect attempts before the program stops. If the PIN code is correct, the user will be shown a menu where he can choose one of the following actions: . check balance • withdraw amount • deposit amount When checking the user's balance, the program should print the actual balance. If the user chooses to withdraw an amount, the program will ask the user how much he wants to withdraw and then process the request by removing it from the balance and showing the new balance. If the amount is more than the available balance, the program will show an error message and ask the user to specify a new withdrawal amount. When the user chooses to deposit an amount, the program will ask the user to specify the deposit amount and then adds that amount to the available balance and show the new balance after deposit. Upon completing any of these operations, the user will be asked to choose a new operation if desired. You should presume that software users have no prior technical knowledge and might not always enter data inside the desired range. Ensure to provide assistive prompts to guide a new or confused user as to how the program is expected to work. Your programs should never terminate abruptly. You will create a program to simulate an ATM banking machine. Your program will generate a random PIN code consisting of 4 digits, i.e. 3270, 0063, 0917, etc. It will also generate a random available balance from 1000 - 20000 QAR. The user will be asked to enter his PIN code. He will be allowed 3 incorrect attempts before the program stops. If the PIN code is correct, the user will be shown a menu where he can choose one of the following actions: . check balance • withdraw amount • deposit amount When checking the user's balance, the program should print the actual balance. If the user chooses to withdraw an amount, the program will ask the user how much he wants to withdraw and then process the request by removing it from the balance and showing the new balance. If the amount is more than the available balance, the program will show an error message and ask the user to specify a new withdrawal amount. When the user chooses to deposit an amount, the program will ask the user to specify the deposit amount and then adds that amount to the available balance and show the new balance after deposit. Upon completing any of these operations, the user will be asked to choose a new operation if desired. You should presume that software users have no prior technical knowledge and might not always enter data inside the desired range. Ensure to provide assistive prompts to guide a new or confused user as to how the program is expected to work. Your programs should never terminate abruptly. You will create a program to simulate an ATM banking machine. Your program will generate a random PIN code consisting of 4 digits, i.e. 3270, 0063, 0917, etc. It will also generate a random available balance from 1000 - 20000 QAR. The user will be asked to enter his PIN code. He will be allowed 3 incorrect attempts before the program stops. If the PIN code is correct, the user will be shown a menu where he can choose one of the following actions: . check balance • withdraw amount • deposit amount When checking the user's balance, the program should print the actual balance. If the user chooses to withdraw an amount, the program will ask the user how much he wants to withdraw and then process the request by removing it from the balance and showing the new balance. If the amount is more than the available balance, the program will show an error message and ask the user to specify a new withdrawal amount. When the user chooses to deposit an amount, the program will ask the user to specify the deposit amount and then adds that amount to the available balance and show the new balance after deposit. Upon completing any of these operations, the user will be asked to choose a new operation if desired. You should presume that software users have no prior technical knowledge and might not always enter data inside the desired range. Ensure to provide assistive prompts to guide a new or confused user as to how the program is expected to work. Your programs should never terminate abruptly.
Expert Answer:
Related Book For
Quantitative Analysis for Management
ISBN: 978-0132149112
11th Edition
Authors: Barry render, Ralph m. stair, Michael e. Hanna
Posted Date:
Students also viewed these computer engineering questions
-
At an interest rate of 10% per year, the equivalent amount of $10,000 one year ago is closest to: ( (A) $8264 (B)$9091 (C) $11,000 ) (D)$12,000 Assume that you and your best friend each have $1000 to...
-
A corporation declared and issued a 15% stock dividend on November 1. The following up-to-date data were available immediately prior to the dividend: Retained Earnings - $750,000 Shares issued and...
-
On October 15, 2013, a 5% stock dividend was declared and distributed. The market value of the common stock on this date was $32 per share. Fractional share rights represented 100,000 shares. Cash...
-
Product Strategy Duff has always followed a level production strategy because Duff prefers not to fire and hire employees. Management is open to change if there is enough of a cost benefit for the...
-
An exercise room has 6 weight-lifting machines that have no motors and 7 treadmills each equipped with a 2.5-hp (shaft output) motor. The motors operate at an average load factor of 0.7, at which...
-
The very long cylindrical solenoid of Figure P29.27 has a radius of \(0.50 \mathrm{~m}\) and 1200 windings per meter along its length. A circular conducting loop of radius \(1.0 \mathrm{~m}\), and...
-
A rotor, having three eccentric masses in different planes, is shown in Fig. 9.43. The axial, radial, and angular locations of mass \(m_{i}\) are given by \(l_{i}, r_{i}\), and \(\theta_{i}\),...
-
Aubrae and Tylor Williamson began operations of their furniture repair shop (Furniture Refinishers, Inc.) on January 1, 2019. The annual reporting period ends December 31. The trial balance on...
-
Elvin Hospital bases its budgets on patient-visits. The hospital's static planning budget for May appears below: Budgeted number of patient-visits Budgeted variable costs: Supplies ( $8.45 per...
-
As the manager of Margarita Mexican Restaurant, you must deal with a variety of business transactions. Provide an explanation for the following transactions: a. Debit Equipment and credit Cash. b....
-
(a) ISA 750' Modifications to the opinion in the independent auditor's report-sets out the different types of modified opinions. Required State three ways in which an auditor's opinion may be...
-
Marcy, age 1 2 , earned $ 4 0 0 from babysitting during 2 0 2 2 . Her parents claim her as a dependent. She also had interest and dividends of $ 2 , 8 0 0 during the year. She did not itemize...
-
Discuss the impact of Microsoft Windows on the Software market?
-
Details of a company s insurance policy are shown below: Premium for year ended 3 1 March 2 0 X 6 paid April 2 0 X 5 : 1 0 , 8 0 0 Premium for year ending 3 1 March 2 0 X 7 paid April 2 0 X 6 : ...
-
1. The Treaty on European Union (Maastricht Treaty): a) three pillars of the EU; b) competences and the institutional system; c) EU citizenship and the protection of fundamental rights. 2. The EU...
-
need help understanding the following question Windows vs Mac OS Apple's Mac OS is a major competitor for Microsoft Windows, and many people feel very strongly about choosing one over the other. Some...
-
TranscribedText: You purchased 100 shares of General Motors stock at a price of $99.49 one year ago. You sold all stocks today for $106.78. During the year, the stock paid dividends of $3.54 per...
-
Design a circuit which negative the content of any register and store it in the same register.
-
What is a shadow price? How does the concept relate to the dual of an LP problem? How does it relate to the primal?
-
Megley Cheese Company is a small manufacturer of several different cheese products. One of the products is a cheese spread that is sold to retail outlets. Jason Megley must decide how many cases of...
-
What is the difference between a discrete probability distribution and a continuous probability distribution? Give your own example of each.
-
Would you rather be involved in warfare as a member of a forager society or as a member of an industrial nation? Why?
-
How can the study of contemporary foragers provide us with an understanding of Paleolithic lifestyles?
-
What types of economic exchange would you expect to find in hunter-gatherer societies? Are the individuals in foraging societies more altruistic, magnanimous, and generous, or are they no more nobler...
Study smarter with the SolutionInn App