This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.

Exercise 9: (1) Display the largest and smallest numbers for both float and double exponential notation.

This is my solution to this excercise. Is this the expected answer? I manipulated the bases and exponent till I did not get Floating point too large error.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.

I think the question is too vague about this. Do they mean the largest double value which can be written in exponential notation, or do they mean the largest exponential part when writing a double in exponential notation?
I would post both answers and tell them to pick which one they want