Question: Please help me with this java program. Thanks Write a function called cashCheck. This function takes one double value as parameter. This function will break
Write a function called cashCheck. This function takes one double value as parameter. This function will break down the value passed to it into the smallest amount of US Dollar Bills and US cent coins possible, and output the result. For example, if one passes the number 52.71 to the function, the function will output: 1x $50 bil 1x $2 bill (or 2x $1 bill) 2x 25c 2x 10c 1x 1x The function consider all 'standard' dollar bills and coins, i.e. $100, s50, s20, s10, S5, SI bills (you can decide whether or not to include the S2 bil) 25c, 10c, 5c, Ic
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
