DOUBLE CLICK 
THIS SPEAKER TO 
HEAR TEACHER.

Basic
Computer 
Programming:

consists of 5 main operations
1. input and output
2. conditional processing
3. conditional branching
4. subroutine branching
5. looping 

Ex:1_________________________________________________

10 input"your age", x				simple input statement
20 print x						simple print statement
run							type "run" to run program
your age? 34					program asks for a value
34							prints 

Ex:2_________________________________________________

10 input"your new weight", x		simple input statement
15 input"your old weight", y			simple input statement
20 print"you must lose ";x-y;"lbs."		print statement. Calculate x-y. 
							semi-colon leaves no spaces.
run							type "run" to run program
your new weight? 204				program asks for a value
your old weight? 184				program asks for a value
you must lose 20 lbs				prints x-y
Ex:3_________________________________________________

10 input"your new weight", a		simple input statement
15 input"your moms weight", b		simple input statement
20 print"you are ";a-b;" lbs. heavier"	print statement. Calculate A-B. 
							semi-colon leaves no spaces.
run							type "run" to run program
your new weight? 204				program asks for a value
your moms weight? 184			program asks for a value
you are 20 lbs. heavier				prints x-y

You can use any letter for a variable name x,y,a,b, whatever you choose,
even xxx, aaa, or words like val, total, etc.
_________________________________________________
When we are talking INPUT we are talking about data, not programs that process data.  Data can be entered into the computer through disk drives, CDROM, keyboards, mouse clicks(Y,N),  joysticks(L-R-Up-Dn), downloading to your computer from the internet, uploading to your computer from another computer, parallel ports, USB ports, or hardware in-port lines.
__________________________________________________
OUPUT includes most of the above including uploading data to another computer, CRT screen output, output to sequential or direct access files (binary or ASCII) to disks, burning CDs,  sending high/low values out to the out-port of an I/O CHIP (peripheral adapter chip) that may be used to control some external electronic device like an automobile carburetor, etc...
_________________________________________________
Assignments:
1.  Write a program that will ask how much you weigh and you mate weighs print out the total of your weights.
2.  Write a program that will read in non-zero inport values and send "11111111"s to the outport Digital to Analog converter to turn on a siren.  Alarm example#1