Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Directions In the code cell below, write Python code to accomplish the following using what you've learned through Chapter 2. Prompt the user to enter

image text in transcribed

Directions In the code cell below, write Python code to accomplish the following using what you've learned through Chapter 2. Prompt the user to enter a whole dollar amount (from 1 - 99 for this application) to be withdrawn from our virtual ATM. Use the input gathering techniques demonstrated in Section 2.6 to gather this input. For the moment, you may assume that the user follows your directions for the input (namely, entering an integer between 1 and 99 inclusive). Calculate and print the number of bills of each denomination (twenties, tens, fives, and ones) that should be dispensed, minimizing the total number of bills used. Start with twenties and work your way down to ones. If no bills of a particular denomination are needed, skip that bill in the output using if statements as demonstrated in Section 2.7 of the text. (25 pts.) Sample Output Welcome to the CIS 443 Virtual ATM! Enter whole dollar amount (1 - 99): 94 Dispense: 4 twenties 1 tens 4 ones An easy way to approach this problem is with the use of floor division (II) and remainder (%) operations

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

5. What role does power play in determining our cultural spaces?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago