Somebody with a lot of time and addicted with java:
Define a class called Parking that has the following properties: CarPlateno of String type, Hours of parking, Parking rate per hour. Include appropriate accessors, mutators and constructor(s) as well as a method to change the carís information.
Define a class called Carpark that has the following properties:
i.An array season_parking that can allowed up to maximum 150 parking at a time.
ii.Include a method that will allow new parking information to be included into the system.
iii.Include a method to search for a car parking information.
iv.Include a method to increase the seasonal parking rate by 20%
v.Include a method to display all car details that are currently still parking.
vi.Include a method to find the average hours of parking.
vii.Include two more methods that either involved calculation, or data manipulation.
Finally define a main menu program that will allow all the parking information to be manipulated.
Nice homework problem, so what's your question?
By Lori Piquet in forum Talk to the Editors
Last Post: 10-10-2002, 07:01 AM
Last Post: 02-11-2002, 12:15 AM
By Anonymous in forum Java
Last Post: 02-01-2002, 12:08 AM
Last Post: 04-14-2000, 11:46 AM
By shalom cohen in forum Java
Last Post: 03-18-2000, 02:49 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL