22 q 1 Kilo ByteKB 1024 bytes 210
資料的儲存單位(2/2) q 儲存單位的換算 1 Kilo Byte(KB)= 1024 bytes = 210 bytes 1 Mega Byte(MB)= 1024 KB = 220 bytes 1 Giga Byte(GB)= 1024 MB = 230 bytes 1 Tera Byte(TB)= 1024 GB = 240 bytes 1000 bytes = 1 K 1000 K = 1 M
程式設計與程式語言 Telling the computer what to do
程式設計(Programming) • Why programming? – 解決問題(solving problem. ) • Who program the program? – The programmer is programming a program!
程式設計師的 作 • 將問題的解法轉成電腦可認知的程式指令 Convert problem solutions into instruction for the computer. • 程式設計師必須和「使用者」、「管理者 」、「系統分析師」,以及評估你的 作 的每個人進行協商,以完成最佳任務。 coordination meetings with users, managers, system analysts, and with peers who evaluate your work
程式語言的分層 • • • 機器語言 Machine Language 組合語言 Assembly Languages 高階語言 High-Level Languages 非常高階語言 Very High-Level Languages 自然語言 Natural Languages
主要高階程式語言 Language 應用 FORTRAN--FORmula TRANslator(1954) 科學 COBOL--COmmon Business-Oriented Language(1959) 商業 BASIC--Beginner's All-purpose Symbolic Instruction Code 教育,商業 Pascal--named after French inventor Blaise Pascal(1971) 教育,系統, 科學 Ada--named after Ada, the Countess of Lovelace(1980) 軍事,一般 C--evolved from the language B, from Bell Labs(1972) 系統,一般
Elements of program • Data(variables) + instructions(code or functions) – Variables: the basic building blocks of a program. – Instructions tell the computer what to do with the variables. – Comments are used to describe the variables and instructions.
- Slides: 28