Connecting Tech Pros Worldwide Help | Site Map

Parking Ticket Simulator

Newbie
 
Join Date: Oct 2006
Posts: 2
#1: Oct 22 '06
import java.util.ArrayList; // Needed for Arraylist class
import java.util.Scanner; // Needed for keyboard input
/**

This program demonstrates how an arraylist can be used
as a data type.

*/


public class parkingclass()
{
private JPanel;
private JLabel;
private JTextField
private JRadioButton
private

/**


public static void main(String[] args)

{
//Set the title.
settitle ("Parking Tickets");

//Set the size of the window.
setSize


}

}

public class parkedcar()
{


}

}

public class parkingmeter()
{


}
}

public class parkingticket()

{


}

}

public class policeofficer()

{

}

}
Newbie
 
Join Date: Oct 2006
Posts: 2
#2: Oct 22 '06

re: Parking Ticket Simulator


for parked car-
can use a mutiple dimension array- row is the car and columns is the attribute
parking meter-
an array that has the parking times--array[0] contains the time for car 0
parking tickets class-
each row could be a ticket-the column is the make model, color, and liscence of the car, the amount of the ticket
police officer-
one row is an officer and the car he inspected- po name badge, check the car time, if time < 0, issue ticket
Reply