본문 바로가기

Solve a multipart tournament scenario

코딩 전 모든 부분을 읽으십시오

토너먼트 리포트에는 저장된 점수, 팀 합계 및 우승자가 포함되어야 합니다. 어떤 데이터는 공유하고 어떤 변수는 각 팀마다 초기화해야 하는지 결정하십시오. 나중에는 재사용 가능한 함수를 요구할 수 있으므로, 해당 함수의 인터페이스는 리포트 출력과 분리해 두어야 합니다.

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