1 / 11

Computer Programming

Computer Programming. Previous Experience. I have never seen a computer program I have seen some code, but never written any I have written some basic code in one language I have written several programs in more than one language Which number describes you best?.

Télécharger la présentation

Computer Programming

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. Computer Programming

  2. Previous Experience • I have never seen a computer program • I have seen some code, but never written any • I have written some basic code in one language • I have written several programs in more than one language Which number describes you best?

  3. What is computer programming? • Can you give a definition of a computer program? • Do you need to have done it before? • Do you have to be “good at computers”? • “If computing is the study of computers, then astronomy is the study of telescopes and chemistry is the study of test tubes.”

  4. My definition • A computer program is a sequence of instructions in a limited language that when executed in the correct order accomplishes a specific task on a computer. • Can you give some examples of computer programs?

  5. Computer Programs

  6. In this course… ?

  7. First steps… • What is Logo? • Open up FMS Logo • We will start with three commands only • fdn • Move forward n pixels • rtn • Right turn n degrees • cs • Clear the screen • Practice using these commands to draw a square, rectangle, and triangle

  8. Math in Logo • * is times • / is divide • + is plus • - is minus • 3 ** 4 is three to the power four • sqrt(25) is square root

  9. Shapes to create ? Pentagon Hexagon N-agon House Castle

  10. Difficulties • What if you want to execute the same instructions over and over? • What if you want to save your shapes so you can use them next time? • We will find solutions to these problems in the coming weeks

  11. Recap • A computer program is a sequence of instructions in a limited language that when executed in the correct order accomplish a specific on a computer • Concepts: • Looping • Code reuse • Syntax • This course is more about problem-solving, than computers • You need to find your own level, and try to learn something new or practice something you’ve learned, every lesson • Don't compare yourself with other students in the class!

More Related