Reference no: EM133493955
Assignment:
Can you please with explanation help me develop the modular algorithm and program that will receive an input in cents in a particular currency and return the optimal amount of coins in that currency. Value of money entered should be between 1-95 cents inclusive. The program should first, ask the user to select a currency among the following three:
1) US$, which has four types of coins: 50, 25, 10 and 1 cents
2) AU$, which has four types of coins: 50, 20, 10 and 5 cents
3) Euro, which has four types of coins: 20, 10, 5 and 1 cents
The ask you to input an amount of money in cents (between 1-95), if AUD is currency chosen then program should ensure that input value is a multiple of 5.
Program should then return the minimum number of coins in currency of choice that sum up to the input value. After each output the program should as you if you want to continue.
Could you please also show me what the structure chart for this modular program will look like.