5
Introduction to C Programming Program 3

Introduction to C Programming

Embed Size (px)

DESCRIPTION

Introduction to C Programming. Program 3. Program 3 身分 證字號 產生器. 說明 輸入性別後 亂數 產生正確格式之身份證 字號 。 ( 男 生用 M ,女生用 F 為代號 ) 亂數產生之使用身份證字號必須通過檢查碼測試。. Program 3 (Cont.). Sample input 請 輸入性別 :M Sample output A123456789. Bonus. 挑戰 : 上色 & 動畫 將前面輸出之身份證字號上色 ( 男生為 藍色 ,女生為 紅色 ) 。 - PowerPoint PPT Presentation

Citation preview

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