logo

Crowdly

The remainder of the program is missing. Write the section of code that would us...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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)

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на modules.lancaster.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!