Damn! I ran smack dab right into a bit of homework that actually had me stumped today and while taking several hours to find the solution, I completely forgot about my blog. It turns out that the reason that I was so stumped was because I was trying to solve the problem using a method that has not been taught to us yet. That does make things a bit more difficult, but . . .
(And I bring this next part up in special consideration to Mrs. Chili, CV Rick, JohnM, and anyone else who happened to post anything today about the incredibly sad state of education in the United States)
I solved the problem by finding the resources to teach myself how to solve the problem in the way that I wanted to solve it. Yeah, that probably added another hour or so onto my homework but the problem was solved much more elegantly and it's information that I will be using again (in fact, as soon as next week).
And, so as to not leave Jewbacca out of today's post since he was kind enough to interrupt my self-teaching time for the incredibly amazing news that a baseball diamond is actually a square that looks like a diamond because of how it is placed in the stadium (although I did not know that it had sides of 90 feet), I offer my solution to his problem:
double hypotenuse (double a, double b)
{
double c = sqrt ( pow( a, 2.0) + pow ( b, 2.0));
return c;
}
int main ()
{
double x = 90.0, y = 10.0;
cout << hypotenuse ( x, y);
return 0;
}
I left out some of the more basic stuff but I'm sure you knew that and can fill them in.
And now, to the point of this blog because I am still not done with homework and it looks like it's going to carry over to tomorrow, which I really try to avoid. Once the weekend arrives, my time becomes very scarce and I get nervous about school stuff going undone and I would hate to see that happen.
Here's a pic of my new, certified green technology, bug zapper, installed on my back porch: