Grade 12 IT PAT IEB
PAT 3 A – The beginning of the coding phase.
I am giving you the code to analyze and work with, and then using it as a working template, you can begin to code your own PAT.
NOTE: Because we are not working in forms yet, and therefore there are no event buttons, the UI class will just run top-to-bottom calling method after method. Each method is passed an argument (which would normally come from filling out a GUI – but the GUI do not exist yet)
Our example is an application that holds all the information around a group of students. For step one of the coding phase we start with ONE text file. That is – choose one of the major tables that you want to use in your PAT.
We create a three class program . . .
A text file called students.txt
Open a new project in NetBeans and create three new classes (one with a main method). Paste the code above into your classes (deleting the duplicate lines and being mindful of things like the package name and class names)
Here is all of the code in a pdf document that you can study, print out and analyze. There is no question and no explanation. The document starts with the program output and is then followed by the code itself.
.