Java Application (Parking Simulator) Interface Term Paper

Total Length: 749 words ( 2 double-spaced pages)

Total Sources: 0

Page 1 of 2



Possible mistakes in program and the methods used to solve them.

During the developemnrt of the project the developer met set of mistakes, that were fixed. They refer to different aspects of program development:

1) While working with real variables (float type), after calculations unwanted errors appeared, which caused incorrect work of the application:

for example: Amount=Amount+ (float)0.5 caused incorrect result of the following time:

amount=4.

This mistake was corrected in the following way:

Amount=(float)((Math.rint ((double)Amount*100+(double)0,5*100))/100);

So the numbers were transformed to integers and they were used in math operations like integers, then they were transformed back to real. This was one of the most widely spread errors in the program which was corrected successfully.

2) for date defining data was taken from computer's current profile, but current profile could be set incorrectly. That's why the profile was changed on the profile of UK:

formatter = new SimpleDateFormat ("hh:mm," Locale.Default);

formatter = new SimpleDateFormat ("hh:mm," Locale.UK);

3) When data was recorded into text file, it was recorded as one line whch was very inappropriate for analysis and for viewing

This error was fixed by.newLine () method;

4) During file recording in "OK" button code on form of parking payments the file was rerecorded without saving previous operations (every operation was rerecorded even if the application was still working).

Stuck Writing Your "Java Application (Parking Simulator) Interface" Term Paper?



The mistake was fixed by moving.close () method into the exit application section of program's code.

5) Parking payment counter showed the payment for every next payment step.

Error was fixed by adding time counter into every button.

6) When paying for parking user could input superfluous coins (which would require eternal change calculations, etc.)

The error was solved by calculating the difference between paid hours and ordered hours.

7) in order to make programs code shorter all possible change variants were counted:

Change (10,20,30,40,50,60,70,80,90, 1.30,1.40,1.50,1.60,1.70,1.80,1.90)

Project description:

Project was developed in Borland Java Builder 5.0

Park- project folder

Park.jpx- project's java file (with annotations)

Main classes:

ClassesParkapplication1

ClassesParkframe2

Report.txt- parking payment report file

Literature used:

Calvert, Charlie Calvert's Learn JBuilder Wordware Publishing 2002

Landy, Michael and others Borland JBuilder Developer's Guide Sams 2002

Zukowski, John Borland's Jbuilder: No Experience Required (No Experience Required Series) Symbex Inc. 1998.....

Show More ⇣


     Open the full completed essay and source list


OR

     Order a one-of-a-kind custom essay on this topic


sample essay writing service

Cite This Resource:

Latest APA Format (6th edition)

Copy Reference
"Java Application Parking Simulator Interface" (2005, February 18) Retrieved May 23, 2024, from
https://www.aceyourpaper.com/essays/java-application-parking-simulator-interface-62253

Latest MLA Format (8th edition)

Copy Reference
"Java Application Parking Simulator Interface" 18 February 2005. Web.23 May. 2024. <
https://www.aceyourpaper.com/essays/java-application-parking-simulator-interface-62253>

Latest Chicago Format (16th edition)

Copy Reference
"Java Application Parking Simulator Interface", 18 February 2005, Accessed.23 May. 2024,
https://www.aceyourpaper.com/essays/java-application-parking-simulator-interface-62253