by Editorial | Sep 19, 2025 | Grade 11, Grade 11 - Critical algorithms, Grade 12
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...
by Editorial | Jun 16, 2025 | Grade 11, Grade 11 - Critical algorithms
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...
by Editorial | Oct 30, 2021 | Grade 11, Grade 11 - Critical algorithms, Grade 11 - OOP
You must be able to code these algorithms quickly. Click on links for some of the solutions offered as a download. Determine if a number is odd or even. Find the bigger of two values. Swop two values around. Check username and password – allow or disallow...
by Editorial | Jun 12, 2021 | Grade 11 - Critical algorithms, Grade 11 - OOP, Grade 12 - OOP
A typed method can only return one value. (Yes, a method MAY have several return statements but only one of them will execute depending on the condition.) Sometimes we need to return more than one value. To get around the limitation above we can return one array, that...