Basic
Computer Programming:

consists of 4 main operations
1. input and output
2. conditional branching
3. subroutine branching
4. looping 
EX:1_________________________________________________
01 rem branching example 1					rem is a remark statement
05 INPUT"AGE", A						simple input statement
10 IF A>40 THEN PRINT "MIDDLE AGE"		if/then conditional statement
20 IF A=16 THEN PRINT "SWEET 16!!"		if/then conditional statement
30 IF A=0 THEN 05						if/then conditional branching
35 IF A<30 THEN 50						if/then conditional branching
40 GOTO 05							unconditional branching 
50 PRINT "YOUNG BUCK!!"

RUN					RUN
AGE? 38				AGE? 48
AGE? 28				MIDDLE AGE
YOUNG BUCK!!		AGE? 16
					SWEET 16!!
					YOUNG BUCK 
________________________________________________

1st run: age is 38 which is not less than 30 so we go to the next line which is '40 goto 05'.  At 05 we start over.
1st run: first re-run we input 28 which is less than 30, so we go to line 50 and print "young buck!!"
________________________________________________

2nd run: we input 48 which makes line 10 true, so it prints "middle age".  Since none of the other if/thens are not true we skip to next line until line '40 goto 05', then we re-run.

2nd run: first re-run we input age 16 which makes line 20 true so it prints "SWEET 16!!".  It skips line 30 which is false.  Line 35 is true because 16 is less than 38, so it goes to line 50 and prints "YOUNG BUCK!!"

EX:2_________________________________________________

EX:3_________________________________________________

Assignments:
1.  Write a program that will test a person weight and tell them to go on a diet.
2.  Write a program that will ask for 10 items you ate today and the calories consumed in each.  Then add all the calories up and use a conditional branch to either "You're a pig" or "You're on your way to being glamorous!!"

EMAIL:  attach your assignment to your email.