✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The remainder of the program is missing. Write the section of code that would use the variable pattern and the function drawRect to create the crossword image shown above. Marks will be awarded for both functionality and style.
Hint: You may find the following useful:
Math.floor(number); //rounds decimal number down //i.e. if number = 5.6, //Math.floor(number) = 5
number % 8; //modulus of number, or the remainder //when divided by 8 //i.e. if number = 17, //number % 8 = 1 //(because 2*8=16 and 17-16 = 1)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!