Advertisement
Guest User

code

a guest
Oct 10th, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.34 KB | None | 0 0
  1. public class parkingLot
  2. {
  3.     public static void main(String[] args)
  4.     {
  5.         Pizza a = new Pizza();
  6.        
  7.         System.out.println("Welcome to the parking lot. /n");
  8.         System.out.println("The current time is insert_time_here. /n");
  9.         System.out.println("Please enter your first name: /n");
  10.        
  11.         Scanner scan = new Scanner(System.in);
  12.        
  13.         a.name = scan.next();
  14.         scan.nextLine();
  15.         System.out.println("Please take your ticket, " + a.name + "." + "/n");
  16.         //At this point, the system will have printed a ticket with the time that the user entered, and the users name
  17.         System.out.println("Enter any alphabet character when you return /n");
  18.         a.new = stuff.next();
  19.         stuff.nextLine();
  20.        
  21.         System.out.println("=========================================================================" + "/n");
  22.         System.out.println("The current time is insert_time_here. /n");
  23.         System.out.println("Thank you for parking here, your total time parked is blank_variable");
  24.         //blank_variable would be the result of return time - entered time
  25.         //if blank_variable < 1hr, cost = $10
  26.         //if 1hr < blank_variable < 2hrs, cost = $15
  27.         //if 2hrs < blank_variable < 3hrs, cost = $18
  28.         //if blank_variable > 3hrs, cost = $20
  29.  
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement