A: Yes, it is still useful to go to lecture. Glinert spent 1/2 hour on Monday's lecture going over Program #6 and finally ended with an extension for everyone until Wednesday.
Furthermore, if you hand it on Monday, you will get the bonus points.
A:Consider zis puny example:
Let's say you are working on the following equation:
Your output should show all of these iterations and run through all 6 equations Glinert gave you.
A: Here me now and believe me later, redirecting a file will make your life much easier.
First just make your program as usual, with the normal cin statements. Then create a file, called data, that looks like so:
2 4 -20 24 -6 1 3 -40 1 20 30 40 4 13 0 -13 100 13 -13 0 -3 1 -20 25 0Where each of the numbers corresponds to a, b, c, and d. The final 0 in the a slot will tell the program to end.
Now run your program with the UNIX command:
cubicRoot < data
This way you can run your program quickly without having to type in all those numbers over and over again.
A: Only equations #4 and #5 (from the standard data) have 3 roots, all the others only have one root. But for #4 and #5 I will accept any one of the 3 roots as being the correct solution.
A: Zee homepage may be terminated.