본문 바로가기

Refine designs and choose test data

문장 작성 전 다듬기

최대 간격 보고서를 위해, 읽은 데이터 → 간격 계산 → 최대 간격 찾기 → 출력으로 시작합니다. 간격 계산을 세밀하게 조정하여 I가 2부터 NumberOfReadings까지일 때 인덱스 I와 I - 1을 비교합니다. 이는 하한보다 앞선 데이터를 읽는 것을 방지합니다.

이 보고서는 입력 데이터 읽기, 간격 계산, 가장 큰 간격 찾기 및 출력으로 나뉩니다. 간격 계산은 2부터 NumberOfReadings까지의 루프를 세밀화하여 각 입력값을 다음 값에서 뺍니다

Explain your choice of data structure and loop. Identify one boundary case and predict its result. For a subroutine, explain what is returned or changed in the caller.

이 브라우저의 이번 세션에 저장되었습니다. 교사나 본인이 직접 검토하십시오; 이 설명은 자동으로 채점되지 않습니다.

해당 설명을 다음 기준에 따라 검토하십시오.
  • My types and data structure match the data and the question.
  • I justified the loop and checked its first and last iterations.
  • Initial values and rejected operations preserve the intended state.
  • My test includes input, purpose and expected result.
  • I distinguished returning a value from printing and changing caller state.

로그인 또는 계정 만들기

IGCSE, A-Level & AP