Popular High-Level Languages C (whose developer designed b first Visual Basic basic-like visual language developed by Microsoft) o Delphi (pascal-like visual language developed by Borland 0 C++(an object-oriented language, based on C) Liang, Introduction to Java Programming, revised by dai-kaiyu
Liang, Introduction to Java Programming,revised by Dai-kaiyu 16 Popular High-Level Languages l C (whose developer designed B first) l Visual Basic (Basic-like visual language developed by Microsoft) l Delphi (Pascal-like visual language developed by Borland) l C++ (an object-oriented language, based on C)
Compiling Source code ● Compiler O Compiler help to convert to machine language Interpreter O Execute high-level language programs without compilation Source File Compiler Object File e Linker Excutable file
Liang, Introduction to Java Programming,revised by Dai-kaiyu 17 Compiling Source Code lCompiler ¡Compiler help to convert to machine language lInterpreter ¡Execute high-level language programs without compilation Source File Compiler Object File Linker Excutable File
Operating Systems The operating system(os)is a program that manages and User controls a computers activities Application Programs Controlling and monitoring system activities Allocating and assigning system Operating System resources Scheduling operations > Multiprogramming Hardware Multithreading multiprocessing Unix Windows linux Liang, Introduction to Java Programming, revised by Dai-kaiyu
Liang, Introduction to Java Programming,revised by Dai-kaiyu 18 Operating Systems The operating system (OS) is a program that manages and controls a computer’s activities. ØControlling and monitoring system activities ØAllocating and assigning system resources ØScheduling operations Ø Multiprogramming Ø Multithreading Ø multiprocessing User Application Programs Operating System Hardware Unix Windows Linux
Number systems binary 0.1 OC 0,1,2,3,4,5,6,7 decimal 0,1,2,3,4,5,6,7,8,9 hexdecimal0.1.2.3.4.56,7.8.9,A、B.C、D.E、F Liang, Introduction to Java Programming, revised by dai-kaiyu
Liang, Introduction to Java Programming,revised by Dai-kaiyu 19 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F binary octal decimal hexdecimal
Binary numbers => decimals Given a binary number b,bm-1bm-26b2b1bo the equivalent decimal value is bn×2n+bn-1X2n1+bn2×2n2+…+b2×22+b1×21+b0×2 10 in binary 1x2+0=2 in decimal 1000 in binary1×23+0×22+0×2+0=8 in decimal 10101011 in binary 1×2+0×20+1×23+0×2+1×23+0×22+1×2+1 171in decimal Liang Introduction to Java Programming, revised by Dai-kaiyu
Liang, Introduction to Java Programming,revised by Dai-kaiyu 20 Binary Numbers => Decimals Given a binary number the equivalent decimal value is 10 in binary = 2 in decimal 1000 in binary = 8 in decimal bnbn 1bn 2...b2b1b0 1 2 2 1 0 2 1 2 2 2 ... 2 2 1 2 0 2 b b b b b b n n n n n n 1 2 0 1 1 2 0 2 0 2 0 3 2 10101011 in binary = 171 in decimal 1 2 0 2 1 2 0 2 1 2 0 2 1 2 1 7 6 5 4 3 2