//################### import packages ####################
/**
* drives the project 4 movie program
*
*
* Course-Section: 141-3
*
* @author ANDY HALSTEAD AND JOSH ARMSTRONG
* @since oct 16 10,007
*/
import java.util.Scanner;
public class Driver
{
public static void main( String[] args)
{
Scanner keyboard = new Scanner(System.in);
System.out.print("Enter the movie title: ");
String title1 = keyboard.nextLine();
System.out.print("Enter the minutes: ");
int minutes1 = keyboard.nextInt();
keyboard.nextLine();
System.out.print("Price: ");
double price1 = keyboard.nextDouble();
keyboard.nextLine();
Movie movie1 = new Movie(title1,minutes1,price1);
System.out.print(movie1.toString());
System.out.print("\n\nEnter the movie title: ");
String title2 = keyboard.nextLine();
System.out.print("Enter the minutes: ");
int minutes2 = keyboard.nextInt();
keyboard.nextLine();
System.out.print("Price: ");
double price2 = keyboard.nextDouble();
keyboard.nextLine();
Movie movie2 = new Movie(title2,minutes2,price2);
System.out.print(movie2.toString());
double movieTotal = movie1.getPrice(a) + movie2.getPrice();
System.out.print("\nThe total of both movies' prices is: " + movieTotal);
System.out.println("\n\n" + movie1.getTitle() + " is " + movie1.getMinutes() + " minutes or " movie1.convertMinutesToHours() + " hours and " + movie1.convertMinutesToRemainingMinutes() + " minutes.");
} //===== end method main(String[]) =====
} //======= end class Driver =======