1 / 7

자료구조

자료구조. 프로그래밍 실습 #1. 1-1. 입력 값의 합 , 개수 , 평균 , 최대 , 최소 계산하기. 1-2. 배열을 이용하여 입력 값의 최대 , 최소값 구하기. 2-1. 데이터를 배열에 저장한 후 선택정렬. 2-2. 이진탐색과 순차 탐색 알고리즘. 2-1 의 main 함수의 주석 제거 main 함수 위에 다음을 추가 main 함수 밑에 다음을 추가. 과제 1.

radwan
Download Presentation

자료구조

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 자료구조 프로그래밍 실습 #1

  2. 1-1. 입력 값의 합, 개수, 평균, 최대, 최소 계산하기

  3. 1-2. 배열을 이용하여 입력 값의 최대, 최소값 구하기

  4. 2-1. 데이터를 배열에 저장한 후 선택정렬

  5. 2-2. 이진탐색과 순차 탐색 알고리즘 • 2-1의 main 함수의 주석 제거 • main 함수 위에 다음을 추가 • main 함수 밑에 다음을 추가

  6. 과제 1 • 실습#2-2에서 SequentialSearch함수처럼 BinarySearch프로그램에 각 문장의 실행 횟수를 카운트하는 count 변수를 첨가한 후에, 최종 count값을 인쇄하도록 수정하시오. 이렇게 수정된 프로그램을 실행하여 위 프로그램을 다시 실행하시오. • 수정된 BinarySearch프로그램만 화면과 위 프로그램을 다시 실행한 결과 화면을 캡처하여 제출하시오. • 화면 캡처한 결과는 이메일cjy@kangwon.ac.kr로 제출하시오.

  7. 과제 2 • 교제 48~50에 있는 프로그램 1.26 매직스퀘어를 계산하는 프로그램을 작성하고, 임의의 n값에 대해 실행하시오. 작성된 프로그램의 소스와 실행 결과 화면을 캡처하여이메일cjy@kangwon.ac.kr로 제출하시오.

More Related