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. 1) Determine if a number is odd or even. 2) Find the bigger of two values. 3) Swop two values around. 4) Check username and password – allow or...
by Editorial | Aug 14, 2021 | Grade 11, Grade 11 - Critical algorithms, Grade 12
Being able to round a real number (double number) off to a certain number of decimal places will be required in both the grade 11 and 12 practical exams. For this, you will need to import the DecimalFormat class. Then you must create a DecimalFormat object that...
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...