Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# - 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("+++++++++++++++++++++++"
image text in transcribed

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago