2007년 03월 20일
학교 과제
다음의 문제를 순환함수를 이용하여 프로그래밍하시오.
1. 표준입력장치로부터 n을 입력받아(scanf 함수 사용) 1부터 n까지의 합을 구하는 함수를 순환함수로 작성하여 출력하는 프로그래밍 하시오.
2. 피보나치 수를 구하는 함수를 순환함수로 작성하고, 표준입력장치로부터 n을 입력받아(scanf 함수 사용) n번째 피보나치 수를 출력하는 프로그래밍 하시오.
3. 하노이탑 프로그램을 순환함수를 이용하여 작성하고, 디스크의 갯수가 3일때 디스크가 움직이는 순서를 출력하시오
조건 : 모든 프로그램은 직접 프로그래밍 하여 소스리스트와 각 문제당 3회 이상의 테스트 결과를 출력해서 제출할 것
제출일 : 다음주 수업시간에 (야간: 3월27일 화요일, 주간: 3월 28일 수요일
제출물 : source list 및 출력 결과
컴파일러->
2장 연습문제 풀이
2.4 (1) (2) (5)
2.5
제출기한: 3월 21일 (수)
강의시간 또는 3층 메일박스에
제출방법: A4용지에 handwriting 할것.
Operating System->
wrapping이 잘못되었지만, 잘 편집해서 참조바랍니다.
1.4 Answer: The design goals of operating systems for those machines are quite different.
PCs are inexpensive, so wasted resources like CPU cycles are inconsequential. Resources
are wasted to improve usability and increase software user interface functionality. Mainframes
are the opposite, so resource use is maximized, at the expensive of ease of use.
2.6 Answer: The following instructions should be privileged:
a. Set value of timer.
b. Clear memory.
c. Turn off interrupts.
d. Switch from user to monitor mode.
2.6 Answer: An operating system for a machine of this type would need to remain in control
(or monitor mode) at all times. This could be accomplished by two methods:
a. Software interpretation of all user programs (like some BASIC, APL, and LISP systems,
for example). The software interpreter would provide, in software, what the
hardware does not provide.
b. Require meant that all programs be written in high-level languages so that all object
code is compiler-produced. The compiler would generate (either in-line or by
function calls) the protection checks that the hardware is missing.
2.7 Answer: The data required by the operating system (passwords, access controls, accounting information, and so on) would have to be stored in or passed through unprotected memory and thus be accessible to unauthorized users.
1장, 2장 Summary / Word / Exercise
기타 잡다한 것->
객체지향 프로그래밍 4장까지 정리,
컴파일러 2장까지 정리.
# by | 2007/03/20 09:27 | 스케쥴 | 트랙백 | 덧글(0)




☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]