GRADE 11
JAVA MATERIAL FOR GRADE 11 STUDENTS
Tr – IDE’s and SQL
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...
Gr 11 – Array Random Scanner
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...
Gr 12 – Bubble Sort 2
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 sort an array of objects...
Gr 11,12 – Bubble Sort 1
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...
Gr 11 – String and OOP
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....
Gr 11- NetBeans projects packages class and the main method problem
This post also deals with reading in irregular text files using the Scanner class NetBeans - How to . . Manage projects, packages and classes. Manage which main method is used/loaded (which main method is the point-of-entry) How to run more than one main method -...
Gr 12 – Writing to a text file
Writing to a text file using FileWriter (not PrintWriter) In this example books are added to a growing list of books that is stored in a text file. Therefore we are appending new book records to the bottom on the file thereby creating a flat file database (text based...
Gr 10, 11 – Raspberry Pi
You have to know something about single board computers, what they are, when and how to use them. The latest version of Raspberry Pi 4 Model B comes with either 2Gb, 4Gb or 8Gb of RAM memory making it a perfect solution for anyone wanting to learn to code Java and SQL...
Gr 11, 12 – Golden Thread
In your three class OOP programs - when working with textfiles, while-loops, creating an array of objects and databases . . . . there is a golden thread of consistency that you must adhere to ie the fields, the field types, number of fields and their order, must be...
Gr 11,12 – Algorithms Pseudocode
2020 - New IEB standards for algorithms and pseudocode algorithms At the start, an algorithm is a series of steps to solve a problem. An algorithm should not be language specific, as the plan or steps should be able to be programmed in any language. That being...