logo

Crowdly

23/24: SCC.011: The Art of Coding [1]

Looking for 23/24: SCC.011: The Art of Coding [1] test answers and solutions? Browse our comprehensive collection of verified answers for 23/24: SCC.011: The Art of Coding [1] at modules.lancaster.ac.uk.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

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)

View this question
View this question
View this question

Want instant access to all verified answers on modules.lancaster.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!