CS 111 - 1/18/2018 Due to a Faculty Meeting, No Office Hours for Prof. Troy today. CS Open Advising Sessions: Thursday 1/18/18 (today) - 2pm to 5pm Friday 1/19/19 (tomorrow) - 11am to 1pm CS Student Lounge (SEL 2254) Breakout Room C Labs on Monday in SEL 2058 (9am and 10am) SEL 2249 (11am, 12noon and 1pm) Programming Basics: Data - information Statements - how we wish to mainpulate the data Algorithm - Sequence of instructions to solve a task Stepwise Refinement - take the steps from an algorithm and break them into smaller steps, until each step is a single line of a computer's instruction Statements can differ based on the programming language being used Program - a collection of statements in a given programming language Data gets stored in the Computer's RAM Memory The instructions are able to access different locations into the RAM Memory Between the execution of two instructions the data are stored in the RAM memory In a program, we use names to refer to the RAM Memory locations "variables" is the term used to refer to these names We might use the variables name of: exam1, exam2, exam3, average in a program calculating the average test score. # one possible example of a python program to do the above exam1 = 96 exam2 = 100 exam3 = 35 average = ( exam1 + exam2 + exam3 ) / 3 print average Assignment Statement: Syntax: = Mathimatical Operators 1. ( ) 2. * / 3. + - Assignment Statements are NOT algebraic statements index = index + 1 Step 1. Evaluate the RIGHT HAND SIDE of the equal sign Step 2. Store the value into the variable on the LEFT HAND SIDE