활동

# Times tables tester

초급 | MakeCode, Python | LED, 버튼 | 4 Quality education, 곱셈, 난수, 변수

## 1단계: 만들어 보세요.

### 프로젝트 소개

Test your knowledge of times tables with this project.

다음 동영상을 통해 만들고 프로그래밍하는 방법을 살펴보세요.:

### 설명

• The program uses two variables called “a” and “b” to store random numbers.
• Variables store numbers or values that can change in a computer program.
• Press button A to generate a random number between 1 and 12 for the variable “a” and to show it on the LED display. Press button B to generate another random number between 1 and 12 for “b” and to show it on the LED display.
• Shake the micro:bit to find out what the product is - that's what the answer would be if the numbers were multiplied together. This part of the program works using the multiplication block from the maths menu in MakeCode.
• You can use this project in a competitive two-player game, where the two random numbers are read out and each player must shout out the correct answer first to win a point.

### 준비물

• micro:bit (또는 MakeCode 시뮬레이터)
• AAA 배터리 팩 (옵션)
• our set-up guide may be useful