CS 111 Lecture Notes - Lecture 3: Decimal Mark

43 views3 pages
School
Course
Professor

Document Summary

Print hello world print ( hello world ) # same thing as hello world . # marks comments, which are important when others look at our programs. # comments for blocks of code are good. When programming, program style is important: style makes the program easier for another person to read/understand. Comments descriptions written within the program statements that add meaning to the program. Programs normally have a file heading comment that describes the overall use of the file, the author, the date it was written (started), modifications made over time, etc. Each function normally will have a function comment. Groups of statements will normally have some comments to describe particular usage of these statements. Blank lines separate different parts of the program. Meaningful variable names name the variables something that adds meaning to the program. Single character variables should only be used for loop counters.

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

Related Documents