Menu

[Solved]Create C Program Accept 4 Digits Pin Number Enter Three Five Digits Pin Number Message Dis Q37175745

Create a C++ program that accept any 4 digits pin number. Whenyou enter a three- or five-digits pin number a message shoulddisplay “Your pin number is incorrect!!you must enter a four digitspin number.” By showing this message the program should allow youto re-enter the correct number of digits, when you have entered thecorrect number of digits the following message should display “Yourpin number has been accepted. “Please make sure when you enter anypin number it must show with asterisk (does not matter if is 3, 4or 5 pin numbers.

The C++ program should have the following codes: ✓ LogicalOperators ✓ Goto Statement ✓ If and else Statement Note: Finally,Automatic Teller Machine, that takes balance of a user’s account asinput. It should then ask the user how much amount he wants towithdraw from his account. The program should take this amount asinput and deduct from the balance. Similarly, it should ask theuser how much amount he wants to deposit in his account. It shouldtake this amount as input and add to the balance. The programshould display the new balance after amount has been withdrawn anddeposited. • Note: Your program should have a check on balance andamount being withdrawn. Amounts greater than balance cannot bewithdrawn i.e. balance cannot be negative. • Hint: Use all threeselection statements (IF, If else and switch)

Expert Answer


Answer to Create a C++ program that accept any 4 digits pin number. When you enter a three- or five-digits pin number a message sh… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *