Question: python program please 4) Write a program that will convert an integer value representing an amount of money in Qatari Riyals into the smallest number
4) Write a program that will convert an integer value representing an amount of money in Qatari Riyals into the smallest number of bank notes needed to add up to that amount. The program should use a loop to repeat converting as long as the users wants. Hint: Why not use the modulus operator? 1 flyal Sriyals Enter a number of Riyals to convert or o to Stop: 198 198 Riyals is the same as: 10 riyala 0 - 500, 1 - 100, 1 - 50, 4 - 10, 1 - 5, 3 - 1 10 SO Enter a number of Riyals to convert or to Sonyms Stop: 10 10 Riyals is the same as: 0 - 500, - 100, 0 - 50, 1 - 10,0 - 5, 0 - 1 100 Hyals 500 Hyals Enter a number of Riyals to convert or o to Stop: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
