1 / 12

COMP 110 Designing Programs

COMP 110 Designing Programs. Tabitha Peck M.S. January 16, 2008 MWF 3-3:50 pm Philips 367. 1. Announcements. Office Hours After Class Today Come if you don’t have jGRASP working Textbook. 2. Questions?. Why 8 bits in a byte? Any other questions?. 3. Writing Algorithms in pseudocode

willow
Télécharger la présentation

COMP 110 Designing Programs

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. COMP 110Designing Programs Tabitha Peck M.S. January 16, 2008 MWF 3-3:50 pm Philips 367 1

  2. Announcements • Office Hours • After Class Today • Come if you don’t have jGRASP working • Textbook 2

  3. Questions? • Why 8 bits in a byte? • Any other questions? 3

  4. Writing Algorithms in pseudocode Encapsulation, polymorphism, and inheritance Variables, arguments, statements, and syntax Today in COMP 110 4

  5. Algorithm • A set of instructions for solving a problem 5

  6. Pseudocode • combination of code and English used to express an algorithm before writing algorithm into code 6

  7. Vocabulary • Variables - store a piece of data • Statements - instructions to the computer • Syntax - grammar rules for a language • Arguments - information methods need to carry out its action 7

  8. Encapsulation (Information Hiding) • packing things up, only seeing part of what is going on 8

  9. Polymorphism • “many forms” • Same instruction to mean same thing in different contexts. 9

  10. Inheritance • way of organizing classes. • At each level classification becomes more specialized. Sandwich Bread Sub Salami Meatball PB&J Turkey 10

  11. Homework • Program 1 is on the web page • We will look at code in recitation that will help you

  12. Friday • Recitation (bring charged laptop) • Lab 1 • Programming help for Program 1 12

More Related