Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. This problem has nothing to do with computers or Python (except that it involves an algorithm, which computer programs also use). It should be

image text in transcribed
1. This problem has nothing to do with computers or Python (except that it involves an algorithm, which computer programs also use). It should be answered in the same way that we answered the which number is larger" question on the first day of class: as a detailed set of directions for humans to follow. If you use the words "variable" or "print", you're not answering the question. Given any integer n between 1 and 299, give a (practical) algorithm that determines the number of 100 dollar bills, 50 dollar bills, 20 dollar bills, 10 dollar bills, 5 dollar bills, and 1 dollar bills that one should use to make n dollars. This means: describe the steps used to determine each number, in order, USING ENGLISH - NOT CODE!. Every cashier uses this algorithm everyday, and most of them don't know Python; describe their thought process, but be precise about how you describe it. You may assume that we all understand basic arithmetic (plus, minus, times, divide, greater than, less than, equals). Write your answer without mentioning any specific price for n. Also, avoid using and so on" (or something equivalent) in your algorithm - give precise directions

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions