Download - Introduction to C Programming

Transcript
Page 1: Introduction to C Programming

Introduction to C Programming

Program 3

Page 2: Introduction to C Programming

Program 3 身分證字號產生器•說明

•輸入性別後亂數產生正確格式之身份證字號。 (男生用M,女生用 F為代號 )

•亂數產生之使用身份證字號必須通過檢查碼測試。

Page 3: Introduction to C Programming

Program 3 (Cont.)

•Sample input請輸入性別 :M

•Sample outputA123456789

Page 4: Introduction to C Programming

Bonus

•挑戰 :上色 &動畫•將前面輸出之身份證字號上色 (男生為藍色,女生為紅色 )。

•畫出一個台灣地圖,將身份證字號之字串移動到出生地位置並將台灣上色為藍 /紅色 (男 /女 )。

Page 5: Introduction to C Programming

Deadline

•11/8