GRADE 11
JAVA MATERIAL FOR GRADE 11 STUDENTS
Gr 11 – Rounding off
Being able to round a real number (double number) in Java off to a certain number of decimal places will be required in both the grade 11 and 12 practical exams. NOTE: When rounding off using these String based methods the accuacy of the origial number does not...
GR 11 12 – GUI design
In your practical Java coding projects attention must be given to GUI design. This is not only important for appearance but because a badly designed interface is prone to user errors. Appearance - Colour. Your GUIs should have a primary colour, a secondary colour and...
Installing Java NetBeans jGRASP
Java is maintained and developed by Oracle NOTE: Do not install onto a laptop that is FULL of movies and games. You hard drive must not be more than 70% full. Delete . . . Apple is not recommended because the textbooks, tutorials and notes are all based on a Windows...
Gr 11 12 Not !
In Java "not" is a bit awkward when used with a String method like "equals" if (name.equals("steve") { } is easy to understand. If the name equals "steve" then execute the code block that follows. What about if the name does not equal steve? if ( !...
Gr 11 – Switch Case
Complex "if-then-else" statements are needed when there are many options e.g. consider all the options in a menu. Fortunately, there is a better way when a lot of options are needed i.e. the "Switch-Case-Break" construct. It works exactly the same as "if-else" but its...
Gr 10 11 – SQL summary
Here is a paried down SQL summary suitable for grade 10 and 11. Version 10 Click here
Gr 11, 12 – SQL tips
SQL TIPS for exams. STUDY the database first (at least 5 full minutes). Study both the data and the fields. Know how many records are in each table so that you can recognize any potential errors in the returned dataset. The better you understand the database, the...
Gr 11 – OOP, String, LocalTime, write to file
Asks for your full name and ID number. Determines the time right now. It reformats the name. It reformats the date of birth from the ID number. It determines the gender from the ID number. It creates a single output String which it prints to both the monitor and an...
Gr 11 OOP and String
Here is a PowerPoint showing the following. Using String handling with OOP - a UI class for the interface and a manager class for the methods. Organizing your One Drive account with your coding projects using NetBeans.Passing a string parameter from one method to...
Gr 11 – Write to text file
A Java program to write to a text file using PrintWriter (not FileWriter). This program reads in a text file using Scanner - a date and a boolean flag. It adds 45 days to the date and compliments the flag (true to false and false to true) It then writes the new data...