디시인사이드 갤러리

갤러리 이슈박스, 최근방문 갤러리

갤러리 본문 영역

밑에 파일 입출력 물어본 늅인데 이게 프로젝트 원문이야

ㅂㅈㅇ(163.152) 2010.11.12 17:04:43
조회 74 추천 0 댓글 1

프로젝트 본문은 이래


Project 1<o:p></o:p>

Data Structures (CNCE201)<o:p></o:p>

Fall 2010<o:p></o:p>

Project Deion<o:p></o:p>

<o:p> </o:p>

In thisproject, you will develop a simple information management system to be used byan organization in managing program activity information of its members participatingin a certain program. The activity information is arranged for everyparticipating member, all sorted by the participant’s employee id as the key. Eachparticipant’s activity information comprised a set of information pieces as pictoriallyshown below:

  

Eid

  
  

Employee  id (one character M|U followed by 6 digits)

  
  

Lname

  
  

participant’s  last name (up to 16 characters)

  
  

Fname

  
  

participant’s  first name (up to 16 characters)

  
  

gen

  
  

gender:  (a gender code: 0..1)

  
  

Actinfo

  
  

activity  information details

  

The activityinformation details, as pictorially shown below, enlist the detailedinformation on every activity in which the member participates.

  

Actid

  
  

activity  identifier (interger: 1..100)

  
  

Jdate

  
  

date  of activity joining (a date code of 8 digits)

  
  

Level

  
  

achieved  level in the activity (integer: 1..9)

  

  

The program,starting with no data put in the system, first creates an empty linked list ofactivity participants, then iterate at the top level of reading and processingcommands for activity information management. The system will handle thefollowing commands:

dump_all_participants<o:p></o:p>

add_Actinfo<o:p></o:p>

delete_Actinfo<o:p></o:p>

change_Actinfo<o:p></o:p>

show_participant_info<o:p></o:p>

end<o:p></o:p>

<o:p> </o:p>

Thesyntax of the commands will be shown by a set of sample commands to be providedlater.  

<o:p> </o:p>

Work to be submitted<o:p></o:p>

Thefollowing files, all zipped together in one zip file, should be submitted dueby 24:00 p.m. of Monday November 15:

1)      source code file: <u>xxxxxxxx</u>dman.c

2)      executable file: <u>xxxxxxxx</u>dman.exe

3)      output file: <u>xxxxxxxx</u>out.<u>yyy</u>

4)      project note: <u>xxxxxxxx</u>PN<u>.yyy</u>  (this file is optional and will not be graded)

where

   <u>xxxxxxx </u>stands for the last 7 digitsof your student ID and

   <u>yyy</u> stands for appropriateapplication file extension widely recognized on MS Windows platform.




Project 1<o:p></o:p>

Data Structures (CNCE201)<o:p></o:p>

Fall 2010<o:p></o:p>

Input data specification<o:p></o:p>

<o:p> </o:p>

Theinput that the program you will build for Project 1 will accept will meet thefollowing specifications:

1.      The system will read in asequence of user commands from a file named as “dman.txt” stored in thedirectory where the executable program is located;

2.      Each command will be delimitedby a pair of brackets ([ and ]);

3.      Each user command will beidentified in the input by a command code as defined below:

  

command

  
  

code

  
  

dump_all_participants

  
  

10

  
  

add_Actinfo

  
  

11

  
  

delete_Actinfo

  
  

12

  
  

change_Actinfo

  
  

13

  
  

show_participant_info

  
  

14

  
  

end

  
  

15

  

4.      Gender information will becoded by the gender code as defined below:

  

gender

  
  

code

  
  

male

  
  

1

  
  

female

  
  

2

  

<o:p> </o:p>

5.      Each information field in acommand will be led by a field identifier as defined below and followed by anequal sign (=);

  

Eid

  
  

eid

  
  

Lname

  
  

ln

  
  

Fname

  
  

fn

  
  

gen

  
  

gen

  
  

Actinfo

  
  

aid

  
  

Jdate

  
  

jd

  
  

Level

  
  

lv

  

6.      The end of each informationfield is delimited by at least one white space except for the last one, whichmay or may not be delimited by white spaces.

7.      For a member whose data is tobe newly added in the database, the command must provide all the informationfields;

8.      For a member whose data isalready in the database, the command may not contain the information fieldsthat remain unchanged except for the key fields (Eid and Actinfo);

9.      As of now, there are 10activities handled by the system which are identified by the activity codes asdefined below:

<o:p> </o:p>

<o:p> </o:p>

  

Activities

  
  

codes

  
  

Activities

  
  

codes

  
  

tennis

  
  

101

  
  

table  tennis

  
  

106

  
  

badminton

  
  

102

  
  

swimming

  
  

114

  
  

chess

  
  

103

  
  

sports  dance

  
  

116

  
  

chorus

  
  

104

  
  

bridge

  
  

121

  
  

body  building

  
  

105

  
  

debate

  
  

132

  

  

  

Anexample given below shows a possible command sequence:

<o:p> </o:p>

[ 11eid=U431 ln=Brown fn=Ted gen=1 aid=103 jd=20080413 lv=0 ]

[ 11eid=M26 ln=Utkoff fn=Mary gen=2 aid=104 jd=20091003 lv=0 ]

[ 11eid=U257 ln=Doe fn=John gen=1 aid=114 jd=20091103 lv=0 ]

[ 11eid=M26 aid=116 jd=20100110 lv=0 ]

[ 10 ]

[ 13eid=M26 aid=104 lv=1 ]

[ 14eid=M26 ]

[ 11eid=U257 aid=116 jd=20100113 lv=1 ]

[ 12eid=U257 aid=114 ]

[ 12 eid=U431aid=103 ]

[ 10 ]

[ 15 ]

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> 이거 프로젝트 원문 ㅇㅇ</o:p>



추천 비추천

0

고정닉 0

0

댓글 영역

전체 댓글 0
등록순정렬 기준선택
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 제목 글쓴이 작성일 조회 추천
설문 비난 여론에도 뻔뻔하게 잘 살 것 같은 스타는? 운영자 24/06/03 - -
229325 횽들 연북갤에서 나왔습니다. 프록시질문 하나만 할게요. [2] 특사(58.141) 11.01.06 125 0
229324 외국인으로 태어나면 좋은 것.jpg [6] ㅇㅇ(121.133) 11.01.06 303 0
229323 아 맛폰 캐고민 ㅁㄴㅇㄹ [11] SODmaster갤로그로 이동합니다. 11.01.06 160 0
229322 근데 요새 ms 자격증 따면 [3] 분당살람갤로그로 이동합니다. 11.01.06 109 0
229321 인생은 하나의 프로그램같은것.. [6] Finalizer갤로그로 이동합니다. 11.01.06 138 0
229318 병특질문 [9] ㅇㅇㅇ(218.55) 11.01.06 128 0
229317 노트북쓰는횽들 노트북추천점부탁드린당 [10] ㅇㅇ(112.165) 11.01.06 146 0
229316 형들 &,&&의 차이를 모르겠어 ㅠㅠ [14] ~*(119.198) 11.01.06 209 0
229315 나 이것때문에 머리 빠지겠다 ㅠㅠ vnc아는횽들 조언점 ㅠ [23] ㅎㅎㅎㅎㅎ(123.215) 11.01.06 423 0
229314 방탄ajax라는 책 좋은가?? [3] SODmaster갤로그로 이동합니다. 11.01.06 135 0
229313 레일즈(rails)하는 횽들 없어? [6] rails갤로그로 이동합니다. 11.01.06 149 0
229311 크롤러 만들어 쓰시는 분 잇나여 [10] 갤러리갤로그로 이동합니다. 11.01.06 182 0
229310 아 어지러워 이모군(1.225) 11.01.06 61 0
229308 젖건들지마 손모가지 날라가븡게 [2] 르하소갤로그로 이동합니다. 11.01.06 235 0
229306 건담 닮은 여자분을 아시는 횽 있나요. [4] 해일리갤로그로 이동합니다. 11.01.06 160 0
229305 감히 게임을 만들어? [3] 둠해머갤로그로 이동합니다. 11.01.06 147 1
229304 에쓰 아이 씨 피 [4] 116.44(116.44) 11.01.06 164 0
229302 형들 서버쪽 질문좀요; [4] 박스노트갤로그로 이동합니다. 11.01.06 124 0
229301 성인요아케이드는 프로그래머 나락이라던데 정말이야? [3] ㅇㅅㅇ(175.209) 11.01.06 185 0
229300 직장선택조언좀 [7] ㅇㅅㅇ(175.209) 11.01.06 154 0
229299 횽들 너무해요 ㅠ.ㅠ [7] 이바보갤로그로 이동합니다. 11.01.06 186 0
229298 예 아직 고딩 아닌강요?? [4] iljeomobolt(121.190) 11.01.06 243 0
229297 내가 호의적으로 생각하는 WILEY 이 출판사는 [8] 왁스맛치즈갤로그로 이동합니다. 11.01.06 157 0
229296 신기허다 java와 c의 차이점 [3] 꿀레갤로그로 이동합니다. 11.01.06 356 0
229295 빅토리아 드립 [3] 이모군(1.225) 11.01.06 162 0
229294 컴퓨터 책 좋아하는 출판사는?? [10] 시불라미갤로그로 이동합니다. 11.01.06 215 0
229293 싸이댓글/다이어리 내용 검색할수있는프로그램은 없나요? [4] 020(221.150) 11.01.06 126 0
229292 jsp좀 공부하려고요 [11] ㅎㄹㄴㅇ(210.178) 11.01.06 164 0
229291 컴터 구조론 책 [7] 왁스맛치즈갤로그로 이동합니다. 11.01.06 147 0
229290 프로그래밍관련된거 말고 우리 이런거도 좀 보자~ [5] (121.159) 11.01.06 171 0
229289 델 놋북 어때? [4] 알칼리(125.183) 11.01.06 137 0
229288 소스 코드 분량 종결자 아이센가드갤로그로 이동합니다. 11.01.06 146 0
229287 플그래밍하는 코딩쟁이중에 컴덕은 봅니다. [16] 코딩(65.49) 11.01.06 261 0
229286 자바스크립트 끄니까... SODmaster갤로그로 이동합니다. 11.01.06 72 0
229285 아 시박 코딩하기 귀찮다 [2] 호박맛갈치(110.15) 11.01.06 156 0
229284 비트강사나 대학교수의 차이가모야 [3] 르하소갤로그로 이동합니다. 11.01.06 216 0
229283 IE8에 자바스크립트 끄기 없나??? [4] SODmaster갤로그로 이동합니다. 11.01.06 274 0
229281 x맛y형은 봅니다 [12] 꿀레갤로그로 이동합니다. 11.01.06 120 0
229279 여기가 바로... [14] 중달(121.166) 11.01.06 113 0
229278 50분만에 육떙에 올인해서 파산하고 왔다.. [2] 꿀레갤로그로 이동합니다. 11.01.06 118 0
229277 형들 나 개발자 계약직인데 [29] SGee갤로그로 이동합니다. 11.01.06 276 0
229276 컴퓨터 구조론 성님들 좋은책 추천좀해주세요 [14] 응핫(112.151) 11.01.06 143 0
229274 코딩실력 VS 아이디어 [27] 'EArtH갤로그로 이동합니다. 11.01.06 343 0
229273 횽들 왜 오라클에서 포트번호가 안바뀔까요? [9] 드랍(119.193) 11.01.06 164 0
229272 뭐 먹고 살지? [7] 이모군(1.225) 11.01.06 123 0
229271 우분투에는 베리즈같은거 없나? [5] 파이리~갤로그로 이동합니다. 11.01.06 277 0
229270 APM같은거 설치할때 우분투에있는 패키지프로그램으로 설치하는거 [38] ㅇㅇㅇ(219.241) 11.01.06 232 0
229269 짤방을 만들었는데... [5] SODmaster갤로그로 이동합니다. 11.01.06 122 0
229268 섯다의 룰을 알기위해 섯다를 까는중 [3] 꿀레갤로그로 이동합니다. 11.01.06 78 0
229267 게등위 위엄 돋네 [7] 푸의미래갤로그로 이동합니다. 11.01.06 149 1
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2