1 / 24

Lecture 3

COP3502: Introduction to CIS I. Lecture 3. +. +. -. -. C-. B / B-. A- / B+ / B. A. A+. --, ++. +. +. -. -. 6. 7. 4. 8. 5. -- (2), ++ (10). 681-800 A 641-680 A- 591-640 B+ 541-590 B 501-540 B- 461-500 C+ 421-460 C 381-420 C- < 380 E. discussions.

almira
Télécharger la présentation

Lecture 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COP3502: Introduction to CIS I Lecture 3

  2. + + - - C- B / B- A- / B+ / B A A+ --, ++

  3. + + - - 6 7 4 8 5 --(2), ++(10)

  4. 681-800 A 641-680 A- 591-640 B+ 541-590 B 501-540 B- 461-500 C+ 421-460 C 381-420 C- < 380 E

  5. discussions

  6. Scratch Meets Java System.out.println(“Hello, World!”)

  7. Scratch Meets Java (1 < 2) (x > 5) (x < y && x > z)

  8. Scratch Meets Java if (x < 5) { **Do something** } else { *Do something else** }

  9. Scratch Meets Java for (inti = 0; i < 10; i++) { **Do something** }

  10. Scratch Meets Java while (true) { **Do something** }

  11. variables

  12. variables type, name, value

  13. variables type, name, value declaration: inti;

  14. i int

  15. variables type, name, value initialization/assignment: i = 0;

  16. 0 i int

  17. variables type, name, value declaration + initialization: inti = 0;

  18. types

  19. 1.25 n 0 i int double

  20. 8 bits = 1 byte

  21. types • byte • short • int • long • float • double • boolean • char

  22. types • byte = 8-bits • short = 16-bits • int = 32-bits • long = 64-bits • float = 32-bits • double = 64-bits • boolean = not well defined • char = 16-bits

  23. types • byte • short • int (integer numbers) • long • float • double (decimal point numbers) • boolean (true or false) • char (letters, punctuation, symbols)

More Related