Calculator Program Needed
$30-5000 USD
Pagado a la entrega
Java provides a class [url removed, login to view] that can be used to handle very large integers. Impliment a similar class, called BigInt, that can be used to do simple calculations with very large nonnegative integers. Design this class carefully. You will need the following:
- A data structure to represent large numbers: for example, a string or an array of digits in a number.
- public BigInt(string val)
A constructor that uses a string
representation of the integer for
initialization. The string may contain leading
zeros.
-public void display()
A method to write numbers. Do not write leading zeros, but if the number consists of all zeros, write a single zero.
-public BigInt add(BigInt val)
A method that returns the sum of val and
the instance of BigInt tht invokes add.
-public BigInt multiply(BigInt val)
A method that returns the product of val
and the instance of BigInt that invokes multiply.
Write a program that acts as an interactive calculator capable of handling very large nonnegative integers that uses the BigInt [url removed, login to view] calculator need perform only the operations of addition and multiplication.
In this program each input line is of the form:
num1 op num2
and should produce output such as
num1
op num2
-----------------
num3
where num1 and num2 are (possibly very large) nonnegative integers. op is the single character + or *, and num3 is the integer that results from the desired calculation. Be sure interface is user friendly.
"COMMENT WELL"
Thanks in advance.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
4) Comment Well
## Platform
Windows XP
Nº del proyecto: #3771449