Script Examples
for midTerm:
Scaffolding
Measuring a rectangle
Salesperson pay
Arithmetic
Control Structure: selection
If...else if
Limit_Range tests
Control Structure: switch
for Final exam(and labs):
"while" statement
Ordering a pair of numbers
"for" statement*
Function Exercise 0
Function Exercise 1
Function Exercise 2--Programmer Defined Functions
Array of numbers
Array of numbers II
Array of strings
Search an Array of strings
Sequential search
Selection Sort*
Other:
HelloWorld(html only)
write("literal")
alert("literal")
write(variable)
prompt() and write()
Inches to Centimeters
IPO coding
Scaffolding with src reference
Scaffolding for Input, Processing, Output (IPO) model
IPO coding--script only
Arithmetic(html with src reference)
Arithmetic(script)only
Predefined String Methods
String Manipulation
The links above are to programming examples presented to the class. It is expected that reworking or testing them (soon) will better prepare you to apply the information to a lab assignment or exam.