A computer _______ consists of instructions executing one at a time
A computer program consists of instructions executing one at a time
What does cout stand for?
Characters out
Is this a valid statement?
cout << "Hello" // hello user! ;
No it is not. The semi colon is at the wrong location
cout << "Hello" ; // hello user!
What does SI stand for?
Supplemental instruction
When a program gets data, perhaps from a file, keyboard, touchscreen, network, what is it called.
Input
What does endl do in a cout statement
cout << endl;
It creates a newline
What are the 2 ways to do a comment in c++?
Give an example of each
// comment
/* comment */
What are the 5 parts of an SI session?
Greeting, Agenda, Warmup, Session, and Closing
When a program puts that data somewhere, such as to a file, screen, network, etc what is it called?
Output
Indicate the actual output of each statement. Assume userAge = 55
cout << "You are " << userAge << " years.";
You are 55 years.
Is this statement valid?
cout << "Keep calm";
cout << endl;
cout << "and";
cout << endl;
yes it is valid.
Keep calm
and
carry on
What is the goal of an SI session
The goal is to have students learn study skills and collaborate tougher
Programs use ______ to refer to data
Programs use variables to refer to data
Create a variable and write a cin statement to receive its input
int x;
cin>> x;
What is the output?
int wage = 2
cout << "Salary is ";
cout << wage * 4 * 5;
cout << endl;
Salary is 40
When and where are my office hours?
Mondays 4:00PM-5:30PM in the Learning Center
Wednesdays 5:00PM-6:30PM in the Learning Center
A program performs computations on that data, such as adding two values like x + y.
What is a process?
Write a cout statement (can be anything)
cout << "Hello world";
cout << x " Marks the spot" << endl;
No it is not valid. There should be >> in between x and the the "Marks the spot
cout << x << " Marks the spot" << endl;
Mondays 11:00AM-12:30PM in Kremen Education (ED) 170
Thursdays 3:30PM-5:00PM in Family Food Science (FFS) 213