[CSC 330] Prepping for the final
Andrew J. Pounds
pounds_aj at mercer.edu
Thu Dec 7 10:57:54 EST 2023
The final exam will be administered in the classroom via CANVAS and
ANVIL. You will be creating a repo for the final where you will be
placing your code pieces and you will be answering questions in CANVAS.
You will also, obviosly, have access to cobra.
Basically the final is going to ask you to make some changes to the code
that you submitted for the COLLATZ project to answer a different
question than the one posed in the project. A few of you made the
obvious mistake that I told you to avoid - you tried to allocate an
array to hold a billion large integers. Good luck with that. In most
cases those programs crashed immediately.
By far the most common mistake happened in Fortran and C++. Many of you
did not change the integer size and went with the default (which has a
max of 2147483647) for all of your integer variables. This died or hung
(ran forever). The other common mistake was changing only the size for
the colatz value of the collatz funtion -- and not any of the
intermediate variables.
I tried to indicate in my notes where these failures occurred. Running
your code with an interval 1..1000000 should exposed issues.
You will want to correct all of these mistake before the final on
Monday. If you have other questions about the collatz grading please
reach out via e-mail.
--
*Andrew J. Pounds, Ph.D.*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA, 31207 (478) 301-5627 /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20231207/d15e500d/attachment.html>
More information about the csc330
mailing list