Loyola College in Maryland

CS 301 - Data Structures and Algorithms I
Fall 2003


Loyola College > Department of Computer Science > CS 301 > Homework > Homework 1

Due

Wednedsay, September 10 at the beginnging of class

Problems 1. Exercise 1.13
2. Exercise 1.20
3. The program is supposed to compute the floor of the square root of its input value X. This program contains an error.
a. What output does the program produce when X=64?
b. Run the program and remove the error. Describe the steps that you took to find the error. c. How can you make the program more user friendly and robust?