Plan a change making program

/* Complete this program to tell how many dollars, quarters, dimes, nickels and pennies to pay back as change
import java.util.Scanner;
public class MakeChange {
   public static void main (String[] args) {
      // input 
      Scanner scan = new Scanner(;
      System.out.print("Enter the total cost of the purchase: ");
      double cost = scan.nextDouble();
      System.out.print("Enter the amount of money paid: ");
      double paid = scan.nextDouble();
      // process
      int numDollars =
      int numQuarters =
      int numDimes =
      int numNickels =
      int numPennies = 
      System.out.println("Your change is $"+numDollars+", "+
      numQuarters+" quarters, "+numDimes+" dimes, "+numNickels+
      " nickels, "+numPennies+" pennies.");

Plan a time calculation program

Assignment 2 – Time Converter

Write a program that finds the date based on a given Unix timestamp. The Unix timestamp is a system for tracking the age of files using the number of seconds that have occurred since the Unix epoch at 12:00:00 AM on January 1st,1970.

We will be assuming there are always 30 days per month (360 days a year) to simplify the calculation.

For input, the program should accept an integer number that represents the number of seconds since the Unix Epoch. The program should then calculate the year, month, day, hour, minute, and second based on the inputted timestamp.

Format your outputs as shown in the sample runs. Make sure that your spacing matches the sample runs exactly.

Sample Run:
Seconds Since Unix Epoch:999999999
Year: 2002
Month: 1
Day: 24
Hour: 1
Min: 46
Sec: 39

Seconds Since Unix Epoch:178437
Year: 1970
Month: 0
Day: 2
Hour: 1
Min: 33
Sec: 57
NOTE: Months are represented by numbers ranging from 0 to 11. Days range from 0 to 29. For example, 0 is January, 1 is February, etc. and 0 is the first day of the month, 1 is the second day of the month, etc.