11-28 Class Notes CS 107

11-28 Class Notes CS 107 - 11-28 Class Notes CS 107 Monday...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 11-28 Class Notes CS 107 Monday, November 28, 2011 2:17 PM Announcements: In-lab final exam during your regularly scheduled lab on Tues & Wed. Be prepared to use an array (1D or 2D) to handle a table of numbers. Program #6 is due Wednesday at 11:59pm, just before midnight. The in-class final exam time & place is posted at the bottom of the class schedule: 3:30-5:30 Tuesday 12/6, LC D5 Questions? Last Time: Video lecture: - Why we make main() chain off to a non-static method - Building a linked list, Recursively reversing a linked list; Also iteratively Today: Lab 14 solution Command Line arguments Binary Numbers & Digital Logic Review of solution to lab 14: Linked list of Employee. First download and setup the project with 3 classes: i. Node.java ii. LinkedList.java iii. Employee.java Then update the code in each one so the lab works correctly. [See code done in class] Command line arguments example [See code done in class] Binary Numbers & Digital Logic (with apologies to students who already know this) Consider the following tables: CS 107 Fall 2011 Page 1 Consider the following tables: So how does this relate to binary numbers? How can we use basic logic with binary numbers to make a computer work? For a small example lets implement a half-adder using simple logic gates: 1. 2. 3. 4. We've already seen Binary Numbers Logic gates: consider behavior of AND, OR, NOT, XOR Think of inputs and outputs for a half-adder (adding 2 bits) How would we implement this using logic gates? CS 107 Fall 2011 Page 2 ...
View Full Document

This note was uploaded on 02/10/2012 for the course COP 2273 taught by Professor Lin during the Fall '11 term at University of Central Florida.

Page1 / 2

11-28 Class Notes CS 107 - 11-28 Class Notes CS 107 Monday...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online