← 수업 제작 도구
홈 › Components › Math Response (수식 답변) › 화면 5

화면 5. Math Input.explainContent [source]

원본: Computation Layer 문서(Math Response (수식 답변)) · Try It (원본 화면)

화면 번호5 / 28
문서 항목 설명 (원문)explainContent Content of the "explain" text box.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 5 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1master CL
(화면 전체)
SCREEN
subtitle: "How many people are there in the graph display?"
▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "How many people are there in the graph display?"(그래프에 사람이 몇 명 있는가?)로 한다.
subtitle은 화면 제목 아래 가운데에 부제목을 붙인다.
2레이블 없는 그래프그래프
# This code creates the number "t_0" in the graph
# and sets it to equal the time that has passed since 
# the numeric answer has been submitted.
▷ 이 코드는 그래프에 숫자 "t_0"를 만들어, 숫자 답이 제출된 뒤 지난 시간과 같게 정한다.

number("t_0"): input.timeSinceSubmit(20)
▶ 그래프의 변수 t_0은 수식 답변 input을 제출한 뒤 지난 시간(input.timeSinceSubmit(20))으로 한다.
number("이름")은 그래핑 계산기 안의 변수 값을 정한다. timeSinceSubmit은 수식 답변을 제출한 뒤 지난 시간(초)을 알려 준다. 학생이 입력칸을 다시 선택하면 0으로 돌아간다. 괄호의 20은 세는 최대 시간이 20초라는 뜻이다.
# This code takes the estimate and injects it into # the graph as the variable "N". ▷ 이 코드는 추정값을 가져와 그래프에 변수 "N"으로 끼워 넣는다. number("N"): input.numericValue ▶ 그래프의 변수 N은 학생이 입력한 값을 계산한 값(input.numericValue)으로 한다.
numericValue는 입력한 식을 계산한 값을 가져온다. 예를 들어 "2+2"는 숫자 4를 돌려준다.
3레이블 없는 메모메모
# This extracts the response to the explain prompt that the student has entered,
# and inserts it into the note's text.
# This also hides all of the content in the note while the explain content is blank.
▷ 학생이 설명 칸에 입력한 응답을 가져와 메모의 글에 끼워 넣는다. 설명 내용이 비어 있는 동안에는 메모의 모든 내용을 숨기기도 한다.
content: 
when isBlank(input.explainContent) "" 
otherwise "Here's the strategy you used to make your estimation:

${input.explainContent}"
▶ 메모의 내용(content)은 input.explainContent가 빈 글자이면(isBlank) 빈 글자, 그렇지 않으면 "Here's the strategy you used to make your estimation:"(추정할 때 쓴 전략은 다음과 같다:) 아래에 빈 줄을 하나 두고 ${input.explainContent}의 값이 이어지는 글로 한다.
explainContent는 "설명" 글상자의 내용을 가져오고, isBlank(…)는 글자를 받아 빈 글자인지를 참/거짓으로 돌려준다. ${ }는 글자 안에 변수의 값을 끼워 넣는 표기이고, when은 조건을 차례로 확인해 처음 맞는 값을 쓴다. content는 메모에 직접 적은 글을 덮어쓴다.
4input수식 답변
# Here we set the prompt for the explain field to 
# "What strategy did you use to make your estimate?"
# Note that we have enclosed the LaTeX in quotes so that it's a string.
# If not set manually, the prompt defaults to "Explain your thinking."
▷ 설명 칸의 안내 문구를 "What strategy did you use to make your estimate?"(추정할 때 어떤 전략을 썼는가?)로 정한다. latex를 큰따옴표로 감싸 글자(string)로 만들었음에 주의하라. 직접 정하지 않으면 안내 문구는 기본값 "Explain your thinking."(생각을 설명하시오.)이다.

explainPrompt: "What strategy did you use to make your estimate?"
▶ 설명 안내 문구(explainPrompt)는 "What strategy did you use to make your estimate?"(추정할 때 어떤 전략을 썼는가?)로 한다.
explainPrompt는 학생에게 답을 설명하게 할 때 입력칸에 나오는 기본 문구 "Explain your thinking"을 바꾼다.