Homework 2 Due on Monday April 7th before class CSC122 Spring 08
1. Explain what the following Haskell function does in one clear sentence. mystery([],[]) = 0; mystery([],[h:t]) = 0; mystery([h:t],[]) = 0; mystery([h1:t1],[h2:t2]) = if (h1=h2) then
Homework 1 CSC122, Spring 2008 Due on Tuesday Feb 19th at midnight.
answers are in blue 1. Consider the following code fragment: for ( int i = 0; i < n - 1; i+ ) { for ( int j = 0; j < n - 1; j+ ) { cout < "Hello!" < endl; } } How many "Hello!"s are
Help Session for Quiz Three Key: Gloria Townsend 1) Write a method called displayChart that has two integer parameters start and finish. (Assume that start's value is less than finish's.) The method will print two labels, number and triple. The metho
Help Session for Quiz Three Key: Gloria Townsend 1) Write a method called displayChart that has two integer parameters start and finish. (Assume that start's value is less than finish's.) The method will print two labels, number and triple. The metho
Help Session CS1 Townsend 1. Write a method named arithmetic that has three parameters: The first parameter is a character variable called operation The second parameter is an integer called num1 The third parameter is an integer called num2 The