COMP SCI 302 Chapter Notes - Chapter 1: Newline, Semicolon, Virtual Keyboard
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.