This PROJECT IS DONE IN C++ (NOT C). There are many C versions available freely on github but please remember I need this in C++. I REALLY NEED THE BigInteger.cpp FILE to be completed and working. As per the pdf attached, Arithmetic.cpp would be the top level client that uses the BigInteger ADT.
This project builds upon a previous project that I have ALREADY completed (List.cpp) and am able to run with no issues. The existing List ADT that is employed in this project is thus already built and working fine. I only need help with creating the BigInteger.cpp file that implements the functions outlined in BigInteger.h (.txt since cant upload .h files) header file. The other files is to help in testing/understanding what BigInteger.cpp is doing.
PLEASE CREATE THE BigInteger.cpp file and the Arithmetic.cpp(less priority) file, the following files attached explains what it does and how it should work. Specifically BigInteger.h has the outline for what each function SHOULD be doing.
Files attached: (NOTE: Files are uploaded in txt format as I am unable to upload .h or .cpp files)
1. pa5.pdf – this is the prompt for the assignment
2. Arithmetic.py(Arithmetic.txt) – python version of what Arithmetic.cpp should look like.
3. BigInteger.h(BigInteger.txt) – header file that outlines the FUNCTIONS NEEDED to be implemented in BigInteger.cpp
5. BigIntegerClient.cpp(BigIntegerClient.txt) – file used to make sure the BigInteger.cpp file created in this assignment works properly.
6. List.h(List.txt) – outlines the functions you can use for completing BigInteger.cpp (List.cpp file not provided to maintain my anonymity)
I will be running the BigInteger.cpp implementation with my own List.cpp file locally and hopefully it will work as per intended.
SAMPLE INPUT AND OUTPUT IS AS FOLLOWS:
SAMPLEINPUT1:
–0041085449
7402779357
EXPECTEDOUTPUT1:
-41085449
7402779357
7361693908
-7443864806
0
-14928815061
-304146513730276293
1688014119531601
54801142208425333449
355708308072979699484782930346148190803050903225721
SAMPLEINPUT2:
9163574346363325007361058
+4597814412658653960738664
EXPECTEDOUTPUT2:
9163574346363325007361058
4597814412658653960738664
13761388759021978968099722
4565759933704671046622394
0
18295094213772667100605846
42132414201178400044840096655815405104727028546512
83971094801328039149560109557410048849885174879364
21139897373251643090844048049647865537964504504896
32875863548034728504943120921374581203198529112519598623009455761670065174913933330657628790755650032056703290625715334677648


0 comments