by Editorial | May 12, 2021 | Grade 11, Grade 11 - Text Files, Grade 12, Grade 12 - text files
Being able to read in a text file into an array of objects using the Scanner class is mission-critical in the final grade 12 practical exam paper. Here are some examples for you to practice with. 1) This text file has 5 fields ie Order, Restaurant, Description,...
by Editorial | Mar 10, 2021 | Grade 11 - NetBeans, Teacher
jGRASP I use jGRASP for grade 10 and the beginning of Grade 11. This forces the learner to code from first principles. I have noticed that universities use jGRASP, NotePad++, and even Notepad for their first-year students (thus following the same path of “first...
by Editorial | Mar 7, 2021 | Grade 11, Grade 11 - OOP, Grade 12
This series of programs offer an integrated approach i.e. learning arrays, random numbers, reading from a text file, and Object Orientated Programming (OOP) as single progression from the first example program to the last. The first one is a one-class program with...
by Editorial | Feb 28, 2021 | Grade 11, Grade 12, Grade 12 - Search and Sort
SORT ARRAY OF OBJECTS – by name – by date The bubble sort can sort numbers, Strings and arrays of objects. For an animation on how the bubble sort algorithm works click here. You may need to revise how the String method “compareTo” works. To...
by Editorial | Feb 27, 2021 | Grade 11, Grade 12, Grade 12 - Search and Sort, PWC grade 12 - All
The bubble sort algorithm offers a simple solution to sorting items in an array; the array can be of a primitive data type e.g. int or it can be an array of objects. The bubble sort works for both numerical values as well as for String and char. SORT NUMBERS On...
by Editorial | Feb 25, 2021 | Grade 11, Grade 11 - OOP, Grade 11 - String and Character Handling
Using methods to manipulate Strings while using OOP principles. Example Input: Steve Eilertsen Output: First Name: STEVE Last Name: EILERTSEN Name and initial: EILERTSEN S This program uses one class and various static methods and variables to manipulate a String....