After a long sabbatical another puzzle has emerged from the mists.
This puzzle has two parts.
a) Assume you purchase two bags of jelly beans at the store. One bag contain 100 jelly beans. The other only 50. Write an xbasic script that will compute and display the average number of jelly beans in the two packages. For extra credit dump your results to the trace window.
b) Assume you drive to a holiday resort at 60 mph. You're in a hurry to get there, right? After your holiday, you head back home traveling the same route, but you only drive at 30 mph. You're not in a big hurry to get back to work! Write an xbasic script that will compute and display your average speed. For extra credit dump your results to the trace window.
** this puzzle is based on a recent blog posting by Al Williams, one of Dr. Dobb's Bloggers. AFTER you've taken a crack at solving this puzzle feel free to check it out. Here's the link. But, please, no peeking ahead of time, ok?
Bookmarks