Illustrate your knowledge of C Programming by implementing a Bank ATM Machine as a C-Program. Program will first ask the user for a 4-digit passcode. If the user enters wrong passcode, program will exit. If the user enters the correct passcode, program will display the following menu on screen and ask the user for choice using ‘Switch’ statement. • Withdraw Cash • Check Account Balance • Pay the Utility Bill Three user defined functions will be implemented to handle each choice. Function ‘WithdrawCash ()’ will ask the user to enter the amount. Function will deduct the amount from the balance. Function will also deduct transaction charges of Rs. 25. If amount withdrawn is more than the account balance, function will display message ‘Insufficient Balance’. After the transaction, function will display the amount withdrawn and the remaining balance on the screen. Function CheckBalance() will display the current account balance on the screen. Function PayUtilityBill () will ask the user to enter Bill amount. Function will check, if there is sufficient balance in the account to pay the bill. If yes, function will deduct the bill amount from the account balance. Function will also deduct service charges of Rs. 45. Function will show the paid bill and the remaining balance on the screen. Account balance will be passed as input argument to all the functions. Return type of all the functions will be ‘void’. Next, program will ask the user if he wants to make another transaction or not. If the user enters ‘y’ or ‘Y’, whole process will repeat. Otherwise program will end. Program should start with an initial account balance of Rs. 200,000. (Hint: You may define user passcode as a character type constant)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Illustrate your knowledge of C Programming by implementing a Bank ATM
Machine as a C-Program. Program will first ask the user for a 4-digit passcode. If the
user enters wrong passcode, program will exit. If the user enters the correct
passcode, program will display the following menu on screen and ask the user for
choice using ‘Switch’ statement.
• Withdraw Cash
• Check Account Balance
• Pay the Utility Bill
Three user defined functions will be implemented to handle each choice.
Function ‘WithdrawCash ()’ will ask the user to enter the amount. Function will
deduct the amount from the balance. Function will also deduct transaction charges
of Rs. 25. If amount withdrawn is more than the account balance, function will
display message ‘Insufficient Balance’. After the transaction, function will display
the amount withdrawn and the remaining balance on the screen.
Function CheckBalance() will display the current account balance on the screen.
Function PayUtilityBill () will ask the user to enter Bill amount. Function will check,
if there is sufficient balance in the account to pay the bill. If yes, function will deduct
the bill amount from the account balance. Function will also deduct service charges
of Rs. 45. Function will show the paid bill and the remaining balance on the screen.
Account balance will be passed as input argument to all the functions. Return type
of all the functions will be ‘void’. Next, program will ask the user if he wants to
make another transaction or not. If the user enters ‘y’ or ‘Y’, whole process will
repeat. Otherwise program will end.
Program should start with an initial account balance of Rs. 200,000. (Hint: You may
define user passcode as a character type constant).

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY