Nicky ten Bosch
Followers: 0 Following: 0
Feeds
提问
Need help fixing my code to calculate the most efficient form of euro change to give a customer (greedy algorithm)
bill = 1 + (200-1) .* rand(1,1) bill = round(bill,2) pay = input("How much cash did the customer give you?") change1 = pay-bi...
3 years 前 | 1 个回答 | 0
1
个回答提问
I need help creating a code to calculate monetary change
What is the code to determine how to give change in the correct amount of bills and coins, minimizing the total number of items ...
3 years 前 | 0 个回答 | 0