Please do code of it Use while loop

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

Please do code of it

Use while loop

• When we draw money from an ATM machine it
asks us to specify the total amount that we wish to
withdraw. The machine (actually the program
running on a computer) then decides the number of
currency notes of each denomination that (i.e. Rs.
500, Rs. 1000, Rs 5000) that must be given to the user in order to fulfil his
request.
In this problem you will write a program that will ask the user to enter the
total amount the user wants to withdraw and then display the number of
currency notes of each denomination that will be given to the user. Please
remember that following rules must be followed while making the
about the number of currency notes of each denomination.
+ There must be enough money available in his/her account. Assume
that this value is also entered by the user.
+ The user must be given at least one note of Rs. 500.
+ The machine must give a minimum number of currency notes to the
user.
+ Total amount specified by the user must be less than his maximum
daily withdrawal limit. Assume that this daily limit will be
provided/specified by the user.
→ Total amount specified by the user must be a multiple of Rs. 500
Transcribed Image Text:• When we draw money from an ATM machine it asks us to specify the total amount that we wish to withdraw. The machine (actually the program running on a computer) then decides the number of currency notes of each denomination that (i.e. Rs. 500, Rs. 1000, Rs 5000) that must be given to the user in order to fulfil his request. In this problem you will write a program that will ask the user to enter the total amount the user wants to withdraw and then display the number of currency notes of each denomination that will be given to the user. Please remember that following rules must be followed while making the about the number of currency notes of each denomination. + There must be enough money available in his/her account. Assume that this value is also entered by the user. + The user must be given at least one note of Rs. 500. + The machine must give a minimum number of currency notes to the user. + Total amount specified by the user must be less than his maximum daily withdrawal limit. Assume that this daily limit will be provided/specified by the user. → Total amount specified by the user must be a multiple of Rs. 500
Expert Solution
steps

Step by step

Solved in 2 steps with 3 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