Assignment 11, due Apr 21
Part of
the homework for CS:2820, Spring 2017
|
On every assignment, write your name and section number. Write your name as it appears on your university ID card! Use the section number as it appears in your current registration! We will not do detective work to figure out who did what. Homework is due on paper at the start of your discussion section. Exceptions will be made only by advance arrangement with your TA (excepting "acts of God"). Never push homework under someone's door!
A problem: Explain why it went into an infinite loop. (0.5 point)
A problem: Explain the problem this creates. (0.5 point)
static abstract int succ( int i );
a) Give Java code that implements this function. Assume this is in a context where it can be done. (0.5 point)
b) Give Java code that evaluates this function. Assume this is in a context where it can be done. (0.5 point)
A problem: List (in the order they occur in the code) all of the declarations in this code that can be marked as final. (1.0 points)