Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is c programming. please to write the problem You will create an ATM menu specified below: 1) Check balance 2) Make a Deposit 3)

this is c programming. please to write the problem

image text in transcribed

image text in transcribed

image text in transcribed

You will create an ATM menu specified below: 1) Check balance 2) Make a Deposit 3) Make a Withdrawal 4) Change Password 5) Exit Please type a number from 1 to 5 to select a menu item: When a number is input by the user, you will print the string corresponding to the number and execute the task as shown below in the list. The underlined entity is the user input for each choice in the menu. ser entere Execute Check balance ser entered Execute Make a Depos nter amount to deposit: 54.77 ser entere xecute Make a Withdrawal nter amount to withdraw: 40.00 ser entere xecute Change Password nter new password: 99999999 New Password ser entere xecute Exit Terminating progra If the input number is 5, your program should terminate as shown above. Otherwise, after every transaction is completed you would print a new line Press any key to continue your transactions... Your program will wait until user presses any key on the keyboard. After a key is pressed, your program will display the menu as above and repeat the process above. Note in the process above, when a number is not in 1 to 5, you will ignore the input. You will use getchar to consume and putchar to print the character entered by the user is a standard IO (input/output) function with the following specification (slightly modified from its original specification) Internally you will create the following variables and any others to hold needed information. 1) MyAccount-Store a float number 2) Initialize MyAccount to 1000.00 as initial balance 3) Password - Store an integer of length 8 digits 4) Initialize Password to 12345678 5) Char variable/s to hold user input and key press. 6) When 1) is pressed you will display contents of MyAccount 7) Deposit increments MyAccount 8) Withdrawal decrements MyAccount 9) When 5 is pressed you must exit cleanly from the Program Also write pseudocheiven

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Who is most responsible for correcting this situation?

Answered: 1 week ago