You may need some of these PEP-8 instructions:
CPA address,d ; Compare AC to memory BRGT label ; Branch if greater than BRLT label ; Branch if less than BREQ label ; Branch if equal DECI num,d ; Input a decimal number DECO num,d ; Output a decimal number STRO s,d ; Output an ASCII stringAnd some of these PEP-8 pseudo-ops: num1: .BLOCK 2 ; Reserve a memory word num2: .WORD 42 ; Store a number in memory msg: .ASCII "string" ; Store string in memory |
Save your PEP-8 source code (completed and tested with the PEP-8 simulator) in a file named "p1.pep" by noon, Sunday 11/25.
Make up a couple of 3-digit numbers; assign these values to variables in your program.
In your program, you will compute the sum and average of these two numbers.
Write a "Processing" (Java) sketch to display the following on a light-blue background:
Save your Java source code (completed and tested with the Processing PDE) in a file named "p2.pde" by noon, Sunday 11/25.
Today (Wednesday 11/28), you will write two simple programs in class and save the source codes in your folder,
Write a Processing (Java) program to do the following:
You may start with a copy of your Project #2 sketch ("p2.pde"),
Save your Java source code (completed and tested with the Processing PDE)
|
Write a new PEP-8 program to do the following:
Save your PEP-8 source code (completed and tested with the PEP-8 simulator)
|
Optional homework:If you wish, you may redo these two programs at home,and resubmit them by noon Saturday 12/1 in files named "z2.pde" and "z1.pep" |
Feel free to review codes on the
suffolk.li
website (and elsewhere),
but make sure you understand every line of code that your submit as your own work
(Meaningless lines of code, and irrelevant code that is obviously copied, will lower your grade!)