1 / 7

Introduction to Programming with Alice

Introduction to Programming with Alice. What is a computer program?. A set of instructions to tell the computer what to do It can be elegant! Not only a way to tell a computer what to do A computer program is a way to tell another human being what you want the computer to do.

abie
Download Presentation

Introduction to Programming with Alice

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. Introduction to Programming with Alice CS150

  2. What is a computer program? • A set of instructions to tell the computer what to do • It can be elegant! • Not only a way to tell a computer what to do • A computer program is a way to tell another human being what you want the computer to do CS150

  3. Computer programming • Another way of thinking! • Another way of solving problems CS150

  4. Ideas in Computer programming • List of instructions, or Sequential processing • “Beat eggs, mix in flour, sugar and shortening, pour into baking pan, then bake at 375 degrees for 45 minutes.” • Ifs • “If it is raining, take an umbrella” • Repeating behavior • “While there are cookies in the plate keep eating cookies” • “Stomp your foot for five times” CS150

  5. Ideas in Computer programming • Breaking things up into smaller pieces • Problem decomposition • Stepwise refinement • Top-down design • “The way we are going to clean the house is to first clean the kitchen, then clean the bathroom, then clean each of the bedrooms one at a time” • Compute a result • Questions or Functions • “How much does the baby weigh?”“Put this baby on the scale and tell me how many pounds she weighs.” CS150

  6. Object-oriented programming • We use objects! CS150

  7. What is Alice? • Alice in wonderland is a tribute to a mathematician, Lewis Carroll… • That taught math in a very simple way using fairy tales. • Learning to program will be easier than you think CS150

More Related