Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

l need a help for my project pllz:)
Write a program that will simulate ATM machine. The Program should prompt the user to enter a valid PIN password number of 5 digits (PIN: 12312). The program will not proceed until a correct PIN is entered. Once a correct PIN is entered, the program will display a menu of 6 choices. Unless a correct choice is entered, the program will keep telling the user to enter a correct choice as shown in Fig.1.
Figure 1
If choice 1 is selected (Check Balance), then a new window will appear as shown in Fig.2 (See notes how to get new window) which is the amount of your account. The program will give the user the choice to continue (if 1 is entered) or exit (if 0 is entered). If 1 is entered, then the program will display the menu as shown in Fig.1.
Figure 2
Introduction To Programming GENG200 Project Prepared By: Ayman Rabee
Page 2 of 6
If choice 2 is selected (Make Withdrawal), then the program will display a new window that gets the amount you want to withdraw. If the amount is negative or if it is greater than your balance, then the program will tell the user a specific message according to the input. An illustration is shown in Fig.3 and Fig.4.
You should note that if the user responds with a valid amount, then the original account balance should be affected.
Figure 3
Figure 4
If choice 3 is selected (Make A Deposit), then the program will start with a new window as shown in Fig.5. The program will not proceed unless a positive value is entered.
Figure 5
Introduction To Programming GENG200 Project Prepared By: Ayman Rabee
Page 3 of 6
You should note that if the user entered with a valid amount, then the original account balance should be increased by this amount.
If choice 4 is selected (View Account Information), then the program should display in new window information about the built-in account as shown in Fig.6.
Figure 6
If choice 5 is selected (Pay Bills), then the program should display in new window choices about the bills you want to pay for as shown in Fig.7 and Fig.8. Here you have to select 1 or 2; if any other number is entered the program will keep asking enter 1 or 2.
Figure 7
Introduction To Programming GENG200 Project Prepared By: Ayman Rabee
Page 4 of 6
Figure 8
Note that the program in this case will ask the user about the amount of money to be paid for the bills, the program will accept the amount if the following conditions are true:
1. The Amount >= 0
2. The Amount <= Your Account Balance
3. The Amount <= Your Bill
If choice 6 is selected (Exit), then the program will display a new window as shown in Fig.9 giving the user the choice to continue with program or exit.
Figure 9
Introduction To Programming GENG200 Project Prepared By: Ayman Rabee
Page 5 of 6
Important Notes:
1. The Program should give the user the choice to continue working with the program or exit after every operation as shown in all of the figures above.
2. You should use user-defined functions wherever possible.
3. To clear the screen and start with an empty one, you can make use of the example code listed in sample program 1.
a. For windows users use system(“cls”)
b. For MAC OsX users use system(“clear”).
c. Use stdlib.h library

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9517008

Have any Question?


Related Questions in Computer Engineering

Describe a ping of death attack as an attack that causes

Describe a ping of death attack as an attack that causes the victim computer to freeze and malfunction.

A sample of 40 songs from a students itunes playlist showed

A sample of 40 songs from a student's iTunes playlist showed a mean length of 3.542 minutes with a standard deviation of 0.311 minute. Construct a 95% confidence interval for the population standard deviation.  (Round yo ...

Design a combinational circuit with three inputs a b and c

Design a combinational circuit with three inputs: A, B, and C, D and the output W. The output should be 1 only when the values of A, B interpreted as an unsigned integer (AB) is equal to the values of C, D interpreted as ...

What are the minimum numbers of keys and pointers in btree

What are the minimum numbers of keys and pointers in Btree (i) interior nodes and (ii) leaves, when: a) n = 10; i.e., a block holds 10 keys and 11 pointeis. b) n = 11; i.e., a block holds 11 keys and 12 pointers.

Arectangular box without a top has surface area 2500 cm2

A rectangular box without a top has surface area 2500 cm 2 . The length x of its base is 18 cm longer that its width. • (a) Use MATLAB's polynomial functions to express the volume V of the box in terms of x. • (b) Plot V ...

Xl cos dividends are expected to grow at a 20 rate for the

XL Co.'s dividends are expected to grow at a 20% rate for the next 3 years, with the growth rate falling off to a constant 6% thereafter. If the required return is 14% and the company just paid a $3.10 dividend, what is ...

Using c language how to write a function name bsqrt that

Using C++ language, how to write a function name bsqrt that will compute the square root of a number using the Babylonian method. This function will take the number x to compute the square root for and the number of iter ...

Need a use case diagram for a case studythe case studypaul

Need a use case diagram for a case study: The case study Paul is the Director of IT Services for a consulting firm Avant. The firm has been growing fast since it was launched in 2010. With over 100 employees and hundreds ...

Determine whether or not the following claim is true for

Determine whether or not the following claim is true for all regular expressions r 1  and r 2 . The symbol ≡ stands for equivalence regular expressions in the sense that both expressions denote the same language.  (a) (r ...

What are the three most significant aspects of threat which

What are the three most significant aspects of threat which will continue to evolve for the next 20 years?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As