Sixth Assignment
Due Tuesday 16th April
Electronic Submission
Using the CGI interface (which you learned to use in the
fourth assignment), write a web-accessible
SuperCalculator.
That is, a calculator that can perform arithmetic operations
with perfect accuracy on 100 digit integers. You can not use
floats or doubles or long long ints: none of them are long
enough; you will have to create your own implementation of
a very long integer.
You should submit your .cpp file as hw6. Also, make sure
that the protecteions are set correctly and your .html file
is properly accessible to web browsers. Write the full
URL (the thing that starts with "http://") needed to access
and use your web calculator, in a readme file, and submit that
too.
Your program should be convenient to use - make it so that if
you find yourself somewhere near a computer when you need to
perform an accurate calculation, it would be just as easy to
access your program over the web as it would be to dig your
fancy calculator out of your back-pack and work out how to use
it.
Your calculator should support as a minimum these four arithmetic
operations: addition, subtraction, multiplication, and factorial.
You do not need to do anything to support division or
negative numbers (either as inputs or as results).
For a sample
follow this link. You do not have to follow the form of this
sample exactly; it is just to give you a clear idea of what is wanted.
You can also use it to check the answers your program prosuces, as
I believe I have go it right.
For Extra Credit:
- Add full support for negative numbers
- Implement Division
- Implement To-The-Power-Of
- Remove the 100-digit limit: make it work for inputs and results
of unlimited size