Algorithms and OOD (CSC 207 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
How does check-equal? work in Scheme?
Is String.equal in Java comparing memory location or character by
character?
Can you as programmer find out the location of an object?
For the new calculator, what are the registers for?
Our calculator is the implementation of a baby programming language.
> 1/2 + 2/3
5/6
> r1 = 1/2 + 2/3
5/6
> r1
5/6
> r1 * r1
25/36
When you say "rewrite this recursive algorithm iteratively", what do you mean?
Have we done user input yet?
How do we make a prompt?
PrintWriter pen = new PrintWriter(System.out, true);
BufferedReader eyes = new BufferedReader(new InputStreamReader(System.in));
...
pen.print("> ");
pen.flush();
result = eyes.readLine(); // I think
What is the relationship between StringBuffer and StringBuilder?
What do you mean by "Make a template class"?
Can you explain the difference between functional, imperative/procedural, and object-oriented programming?
Functional:
Functions are first-class values.
I can write a function that creates a new function that did not exist previously.
> (define make-adder
(lambda (x)
(lambda (y) (+ x y))))
> (define add2 (make-adder 2))
> (add2 5)
7
Often: eval - Code and data are interchangable
> (define exp (list '+ 1 2))
> exp
'(+ 1 2)
> (eval exp)
3
Can you give a concrete example that suggests the difference?
Can you tell us about Exceptions?
When building an array on the fly, should I use a linked list or an array list or a vector or ...?
Can you help me with the homework that I got an extension on and everyone else is done with?