COMP 202 Study Guide - Midterm Guide: Plaintext, Substitution Cipher, Parity Bit

88 views14 pages
hwpark22 and 40159 others unlocked
COMP 202 Full Course Notes
100
COMP 202 Full Course Notes
Verified Note
100 documents

Document Summary

Comp-202b - introduction to computing i (winter 2008) In order to receive full marks, you must show all work: this midterm has 14 pages including this cover page. What shape is it? class secret { public static void main(string[] args) { final int width = 12; for (int i = 0; i < width - 2; i++) { System. out. print(*); for (int j = 0; j < i; j++) { System. out. print(*); for (int j = 0; j < width - 3 - i; j++) { Section 2 - long questions: consider the following program: public class confuse { public static void main(string[] args) { } else { n1 = n1 + 3; stop = stop - n1; d2 = n1 / 20; Trace this program by writing down the list of the statements which will be executed, in the order that they will be executed in.