Page 1 of 1

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

Posted: Fri Jul 01, 2022 5:51 am
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 35 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