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