473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Parking Ticket Simulator

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()

{

}

}
Oct 22 '06 #1
1 5965
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
Oct 22 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Milk | last post by:
Hi all, Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't have any ideal pls help me here...
3
by: quilkin | last post by:
Hi When I use the WM_QUERYENDSESSION event to prevent closing of my app when Windows is shut down, I get the 'windows forms parking window' appearing which is very confusing for users. Any ideas...
0
by: SatishPasala | last post by:
Hi I am developing a Windows Mobile application. I want Visual Studio to use Palm Simulator to display the application. Now it is pointing to Default Simulator. I downloaded the Palm...
7
by: vgame64 | last post by:
hi all...i am stuck again with a simple program... I am supposed to create a parking garage rate calc that follows the rules up to 3 hours its 2 bucks, after that for its fifty cents. Max charge...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
3
by: DanielJohnson | last post by:
I was wondering if anyblody can suggest me a network simulator written in python in which I can add on my own code and extend its functionality. I am looking for a simulator which will simualte...
2
by: cpaucar15 | last post by:
I have this homework and all help will be apreciated The Putdentsinem Parking Garage contains a single lane that holds up to 7 cars. Cars arrive at the south end of the ...
1
by: borla123 | last post by:
Hi- I'm trying to make an application that computes the fee for parking a car in a parking garage. The user should provide the Time In: and Time Out: values by using DateTimePickers. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.