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 | May 2, 2021 | Grade 12, Grade 12 - Inheritance
A Full Solution for a program with four classes, with inheritance. Scenario: A array of dog objects. Two types of dogs i.e. regular “dogs” and “working dogs”, based on Carol Lewis’ inheritance presentation. The UI class with the main...
by Editorial | May 1, 2021 | Grade 12, Grade 12 - Inheritance
A Bare Bones** solution for a program with four classes, with inheritance. Scenario: An event for contestants, some with disabilities and some without. Create an array of contestant objects; Contestants is the superclass with ContestantsP being the subclass...
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 12, Grade 12 - OOP, Grade 12 - Search and Sort
Inheritance is an important element of OOP programming. Using Carol Lewis’ Inheritance workshop we will re-create her example of an array of Dogs. This array will be a mixed array because some of the elements will be of the class “Dogs” while others...
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...