Answer:
// Program is written in Java
// Comments are used for explanatory purposes
// Program starts here..
import java.util.*;
public class Money
{
public static void main(String [] args)
{
Scanner input = new Scanner(System.in);
// Declare Variables
int amount, dollar, quarter, dime, nickel, penny;
// Prompt user for input
System.out.print("Amount: ");
amount = input.nextInt();
// Check if input is less than 1
if(amount<=0)
{
System.out.print("No Change");
}
else
{
// Convert amount to various coins
dollar = amount/100;
amount = amount%100;
quarter = amount/25;
amount = amount%25;
dime = amount/10;
amount = amount%10;
nickel = amount/5;
penny = amount%5;
// Print results
if(dollar>=1)
{
if(dollar == 1) { System.out.print(dollar+" dollar\n");}
else { System.out.print(dollar+" dollars\n"); }
}
if(quarter>=1)
{
if(quarter== 1)
{System.out.print(quarter+" quarter\n");}
else{System.out.print(quarter+" quarters\n");}
}
if(dime>=1)
{
if(dime == 1){System.out.print(dime+" dime\n");}
else{System.out.print(dime+" dimes\n");}
}
if(nickel>=1)
{
if(nickel == 1){System.out.print(nickel+" nickel\n");}
else{System.out.print(nickel+" nickels\n");}
}
if(penny>=1)
{
if(penny == 1) {System.out.print(penny+" penny\n");}
else { System.out.print(penny+" pennies\n"); }
}
}
}
}
See attachment for program file