CHALLENGE ACTIVITY A cashier distributes change using the maximum number of five-dollar bills, followed by one-dollar bi

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CHALLENGE ACTIVITY A cashier distributes change using the maximum number of five-dollar bills, followed by one-dollar bi

Post by answerhappygod »

Challenge Activity A Cashier Distributes Change Using The Maximum Number Of Five Dollar Bills Followed By One Dollar Bi 1
Challenge Activity A Cashier Distributes Change Using The Maximum Number Of Five Dollar Bills Followed By One Dollar Bi 1 (38.23 KiB) Viewed 33 times
CHALLENGE ACTIVITY A cashier distributes change using the maximum number of five-dollar bills, followed by one-dollar bills. Write a single statement that assigns num ones with the number of distributed one-dollar bills given amount to change. Hint: Use %. 1.16.2: Compute change. Sample output with input: 19 Change for $ 19 3 five dollar bill(s) and 4 one dollar bill(s) 1 amount_to_change int(input()) 2 3 num fives - amount to change // 5 4 5 Your solution goes here *** 6 7 print('Change for $', amount_to_change) 8 print (num_fives, 'five dollar bill(s) and', num_ones, 'one dollar bill(s)') Run K DAD!! 1 test All tests passed Feedback
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply