Question: Can someone please help? im close to getting the code right, but I don't know what I need to fix. thank you. Convert totalPennies to

Can someone please help? im close to getting the code right, but I don't know what I need to fix. thank you.
Can someone please help? im close to getting the code right, but
I don't know what I need to fix. thank you. Convert totalPennies

Convert totalPennies to quarters, nickels, and pennies, finding the maximum number of quarters, then nickels, then pennies. Ex: If the input is 207, then the output is: Quarters: 8 Nickels: 1 Pennies: 2 Note: A quarter is 25 pennies. A nickel is 5 pennies. First, the number of quarters is found using integer division on the total pennies. Then, the remaining amount is found using modcilo. Next, the number of nickels is found using integer division on the remaining pennies. Finally, numPennies is found using modulo on the remaining pennies. Not all tests passed 1; Compare output Input Your output 2 Compare output ^ Output differs. See highights below. Input Yout output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!