Presentation is loading. Please wait.

Presentation is loading. Please wait.

CIS 3260 Introduction to Programming Using C#. Tom Gregory Center for Process Innovation Soccer Referee Boy Scout leader B.S. Computer Science MBA Developer.

Similar presentations


Presentation on theme: "CIS 3260 Introduction to Programming Using C#. Tom Gregory Center for Process Innovation Soccer Referee Boy Scout leader B.S. Computer Science MBA Developer."— Presentation transcript:

1 CIS 3260 Introduction to Programming Using C#

2 Tom Gregory Center for Process Innovation Soccer Referee Boy Scout leader B.S. Computer Science MBA Developer 2TAG ▪ 2010 USSF Grade 16 heh

3 Tom Gregory Compiled Languages Interpreted (Scripting) Languages Special Purpose Languages C/C++ Java C# (VB) Object Pascal Assembly PHP Ruby Javascript Flash Actionscript Cold Fusion Bash VB/VBA Scheme (Lisp) BASIC SQL HTML, XML, XSLT CSS 3TAG ▪ 2010

4 Introductions Name (Preferred name & last name) Major Programming experience Something interesting Anything else 4TAG ▪ 2010

5 Syllabus Review TAG ▪ 20105

6 GIYF 6TAG ▪ 2010

7 Semester map 7TAG ▪ 2010 FoundationOOPImplementation

8 My goals Get you to think like a programmer Help you learn more Make it as easy/fun as possible 8TAG ▪ 2010 Teach more, But make it easier.

9 Looking ahead (today) Short history of computers/programming Bits, bytes Hexadecimal Types of languages Color (RGB & HSV) 9TAG ▪ 2010

10 Words to know Binary Bit Byte Hexadecimal Complied language Interpreted language RGB, CMYK HSV (HSB): Hue, Saturation, Value/Brightness 10TAG ▪ 2010 This is easy!

11 11TAG ▪ 2010 01101001 Byte Bit

12 Second-grade math 1337 12TAG ▪ 2010 1,337 (1 x 10 3 ) + (3 x 10 2 ) + (3 x 10 1 ) + (7 x 10 0 )

13 Binary 1337 13TAG ▪ 2010 1,337 (1 x 10 3 ) + (3 x 10 2 ) + (3 x 10 1 ) + (7 x 10 0 ) 1101 1101 (1 x 2 3 ) + (1 x 2 2 ) + (0 x 2 1 ) + (1 x 2 0 )

14 1337 14TAG ▪ 2010 1,337 1000 100101 1101 1011 84218421 = 13

15 Practice Convert from binary to decimal: 15TAG ▪ 2010 1111 0011 0111 0110 1110 = = = = = 15 3 7 6 14

16 Hexadecimal 1337 16TAG ▪ 2010 1,337 (1 x 10 3 ) + (3 x 10 2 ) + (3 x 10 1 ) + (7 x 10 0 ) 8B2F 0x8B2F (8 x 16 3 ) + (11 x 16 2 ) + (2 x 16 1 ) + (15 x 16 0 )

17 1337 17TAG ▪ 2010 1,337 1000 100101 8B2F 0x8B2F 4096256161 = 35,631

18 Practice Convert from binary to hex: 18TAG ▪ 2010 1001 0011 1010 1110 0111 = = = = = 0x9 0x3 0xA 0xE 0x7

19 Practice Convert from hex to decimal: 19TAG ▪ 2010 0x0C 0x2F 0xFF 0xFB = = = = 12 47 255 251

20 Practice Identify most-significant bit: 20TAG ▪ 2010 0x0C 0x80 0x90 0xB8     0 1 0 1

21 Do it in C# TAG ▪ 201021

22 … 48 00000000 456E7465722061206E- 49 00000009 756D6265723A2000 50 00000011 456E74657220616E6F- 51 0000001A 74686572206E756D62- 52 00000023 65723A2000 … 22TAG ▪ 2010 prompt1 db"Enter a number: ", 0 prompt2 db"Enter another number: ”, 0

23 44... 45callread_int; read integer 46moveax, prompt1; store into input1 47 48moveax, prompt2; print out prompt 49callprint_string 50 51callread_int; read integer 52mov[input2], eax; store into input2 53 54moveax, [input1]; eax = dword at input1 55addeax, [input2]; eax += dword at input2 56movebx, eax; ebx = eax 57 58dump_regs 1; print out register values 59dump_mem 2, outmsg1, 1; print out memory 23TAG ▪ 2010

24 Types of programming languages CompiledInterpreted 24TAG ▪ 2010 Statically typedDynamically typed

25 Color 25TAG ▪ 2010 RGB CMYK

26 26TAG ▪ 2010 Red Green Blue Cyan Magenta Yellow

27 Hue:0 - 360° Saturation:0 - 100% Value (Brightness):0 – 100% 27TAG ▪ 2010

28 Estimate RGB values: Convert from HSV 90°, 50%, 50% 120°, 0%, 100% 30°, 75%, 50% TAG ▪ 201028 (85, 105, 53) (255, 255, 255) (99, 63, 29) Predict color &


Download ppt "CIS 3260 Introduction to Programming Using C#. Tom Gregory Center for Process Innovation Soccer Referee Boy Scout leader B.S. Computer Science MBA Developer."

Similar presentations


Ads by Google