Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make it even clearer. Steve McConnell

Counting money

Language Java | Level Intermediate | Category Algorithms | August 4, 2015 9:35 am


Algorithm Problem Description

Write a program to get the amount of money and display the count of each type. The coins displays quarters, dimes, nickels, and pennies.

Output

          	        
          	        

Change owed (in cents) : 45
Quarters: 1, Dimes: 2, Nickels: 0, Pennies: 0
Number of coins used= 3

          	        
          	        				    


Comments



Please login to add comments.