COMP-0011 Lecture Notes - Lecture 4: Grace Hopper, For Loop, Switch Statement

50 views2 pages

Document Summary

Grace hopper (1945: finds actual bug in a computer, invented one of the first high level languages (cobol) which is still in use today, youtube: grace hopper on letterman; left off at 2:57. Hw3 (all about loops) due monday sept. 28th at midnight. Pattern: prints a pattern based on two characters, and a width. Loop changes the number of patters after each iteration +2, -2 (maybe?) Mirror: mirrors numbers, down then up, four times. Today, we will learn more about control flow and we will learn about counters and loops that make programming more powerful. The control flow is the sequence of steps that the program takes. We want to vary it so the program can solve more complex problems. If statements and bool statements give us some control. One example we have seen of non-straight-line-code: function call. Causes other code to run for a while. Causes your code to resume where it called the function.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers