COMP SCI 302 Chapter Notes - Chapter 1: Newline, Semicolon, Virtual Keyboard

55 views3 pages

Document Summary

Recipe: a set of instructions that chef executes like: A program is the recipe for the computer to execute. Program starts by executing a method called main. Each statement ends with a semicolon ; like the period in an english sentence. Braces: denotes a list of statements that are in a group. Program temporarily stores values in a memory like a baker stores ingredients on a countertop. Memory: numerous individual locations, each one storing a value (a dresser with small drawers that can only hold one item within themselves) Int reserves a location in memory ( gets an individual dresser in the cupboard) Wage names the location ( labels the dresser as wage ) also called a variable because the value can change (the wage location can have number 10 or 20) 20 is the value placed in the location wage (puts the number 20 in the wage dresser) Print. ln: prints an output and follows with a new line.

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