Write a cshell script which takes four parameters. These parameters will represent the cost of a purchase in dollars and cents and the amount tendered in dollars and cents. For example, if you wanted to handle a purchase of an item costing $36.62 and you offered a hundred dollar bill, the script would be invoked as:
makechange 36 62 100 0
The output is a list of how many 50 dollar bills, 20's, 10's, 5's, and singles would be in the change and a list of how many quarters, dimes, nickels and cents would be in the change. The script should work for purchases which are at most 100 dollars and should issue an error message if the input is bad.
The output from the example would be:
1 fifty dollar bill 1 ten dollar bill 3 one dollar bills 1 quarter 1 dime 3 cents