Skip to content

The program compromises of 2 main parts that is called by the main function. • main( ) • Class Cheque • Class ArrayList of Cheques (Queues Implemented) The ArrayList is to be implemented in Generics.

License

Notifications You must be signed in to change notification settings

PixelEngineer7/Java-Queue---Cheque-System

Repository files navigation

Java-Queue---Cheque-System

This assignment which was given for the Algorithmics DATA Structure concept was really very challenging and tough. But after analyzing and understanding each function and what it required as parameters, it was then possible to design and make it. Still the main function was not successful as expected since I was not able to understand and implement although so much resources were available. Time was very limited taking into consideration that as a working person in a much-demanded company where my presence is utmost important for urgent problematic solving and analysis. But still I was able to present a program instead of nothing. The program required several JAVA chapters understandings where the acquired knowledge was very important to be applied. Overall, I am very pleased with the programing since I am at a very beginner level.

The program compromises of 2 main parts that is called by the main function. • main( ) • Class Cheque • Class ArrayList of Cheques (Queues Implemented) The ArrayList is to be implemented in Generics.

UML Diagram - Cheque Class

image

UML Diagram - ArrayList Queue

image

UML Diagram - QueuesChequeMain class

image

Structure of Each Class - Cheque Class

image image image

Structure of Each Class - ArrListQueue Class

image image image image

Testing the Program - Output image image image image image

Critical Appraisal The main functions of the program were as follows:

  1. Create an ArrayList
  2. Use it as a Queue
  3. Manipulate it as a Queue of Cheques using the Class Cheque
  4. Class Cheque was created and parameters were designed for the class
  5. Class ArrListQueue was created and parameters and functions were implemented as per guidelines provided.
  6. Upon manipulation cheques were successfully created and also using a unique ID

Total Disaster functions Where I FAILED to Implement or Test.

  1. search( ) • the above function was able not able to work and process data as I was supposed to. I tested and tried still a failure.
  2. clone( ) • the above function was able not able to work and process data as I was supposed to. I tested and tried still a failure even after I tried other codes from the internet where it stated how to use the function.
  3. compareTo () • this function was implemented automatically via the JAVA ide but again a huge headache to use the function and to test it. Total Failure from my part.

Thanks goes to:

  1. https://www.w3schools.com/java/ref_string_compareto.asp#:~:text=The%20compareTo()%20method%20compares,equal%20to%20the%20other%20string.
  2. https://dzone.com/articles/java-cloning-copy-constructor-vs-cloning
  3. https://www.uml-diagrams.org/software-licensing-class-diagram-example.html
  4. https://www.infoworld.com/article/3305792/comparing-java-objects-with-equals-and-hashcode.html
  5. https://www.javatpoint.com/object-cloning

About

The program compromises of 2 main parts that is called by the main function. • main( ) • Class Cheque • Class ArrayList of Cheques (Queues Implemented) The ArrayList is to be implemented in Generics.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published