Problem 17
What is the fundamental rule for testing functions? Why is this a good way to test functions?
Problem 21
What is a stub?
Problem 22
Write a stub for the function whose function declaration is given next. Do not
write a whole program, only the stub that would go in a program. Hint: It will
be very short.
double rain_prob(double pressure, double humidity, double temp);
//Precondition: pressure is the barometric pressure in inches of mercury,
//humidity is the relative humidity as a percent, and
//temp is the temperature in degrees Fahrenheit.
//Returns the probability of rain, which is a number between 0 and 1
// 0 means no chance of rain. 1 means rain is
Problem 23
If computing the statement:
Problem 24
What is a debugger?
Problem 25
What general techniques can you use to determine the source of an error?