Question: # - actual calculations of output # THE ALGORITHM: # 1 st ) divide change _ in _ pennies by 2 0 0 0 :

# - actual calculations of output
# THE ALGORITHM:
# 1st) divide change_in_pennies by 2000: quotient is num of 20's
# rmainder is leftover still to be worked on
# 2nd) divide leftover amount by 1000: quotient is num of 10's
# remainder is leftover still to be worked on
# etc.
1
# You are to complete the calculation section of code below
# ONLY modulus and integer division may be used to solve this problem
# This take many coding statements using temp variable
# DO NOT shove all calculations together
'' UNCOMMENT AND ENTER CODE BELOW ''
twenties = change_in_pennies //2000
leftover = change_in_pennies %2000
tens = leftover //1000
leftover = leftover %1000
print("+++++++++++++++++++++++"
 # - actual calculations of output # THE ALGORITHM: # 1st)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!