Question: In Java Programming Please help, we have been running into trouble after trouble on this assignment. Once seen fully implemented it might be easier. For

In Java Programming

Please help, we have been running into trouble after trouble on this assignment. Once seen fully implemented it might be easier.

For our assignment, we must first take a string, splice it into an arraylist (123456789 becomes [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ])

We must add two arraylists together to create the sum in a method

(arraylist1[ 1 , 2 , 3 ] + arraylist2[ 2 , 3 , 4 ] = arraylist3[ 3 , 5 , 7 ])

We must multiply two arraylists together to create the product in a method

(arraylist1[ 1 , 2 , 3 ] + arraylist2[ 2 , 3 , 4 ] = arraylist3[ 2 , 8 , 7 , 8 , 2])

We must compare two arraylists to see when arraylist holds the larger value in a method

(arraylist1[ 1 , 2 , 3 ] arraylist2[ 2 , 3 , 4 ] return: arraylist2 OR [ 2 , 3 , 4 ]

We must compare two arraylists to see when arraylist holds the smaller value in a method

(arraylist1[ 1 , 2 , 3 ] arraylist2[ 2 , 3 , 4 ] return: arraylist1 OR [ 1 , 2 , 3 ]

Full Specifications in pic

In Java Programming Please help, we have been running into trouble after

Basically you go from a string to an arraylist. then do the min, max add, multiply method, then back to a string. If you need any additional clearification please provide details. I have parts working, I just cannot make the program function as a whole.

Prograiming Enter options d Would you like to select another option? (y) n Would you like to enter another polynomial? (y) a class java. lang.Bigtnteger that can be used to handle very large ntegers. Implement a similar class, called Bigtnt, that can be used to do simpe will need the following n A data calculations with very large nonnegative integers. Design this arefully. You structure to represent large numbers: for example, a string or an array or the digits in a number. . public Bigint(String val) A constructor that uses a string representation of the integer The string may contain leading zeros. Do not forget that zero is a valid nu public String tostring) Returns t for initialization. h String representation of this Bigint. It should not include zeros, but if the number consists of all zeros, it should return a String with a single zero. public BigInt max ( BigInt val) A method that r instance of BigInt that invokes max eturns a Bigint whose value is the maximum of val and the public BigInt min(Bigint val) A method that returns a B instance of BigInt that invokes min igint whose value is the minimum of val and the - public BigInt add(BigInt val) A method that returns a Bigint whose value is the sum of val and the instance of BigInt that invokes add. public BigInt multiply(BigInt val) A method that returns a BigInt whose value is 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 class. This calculator need perform only the operations of addition and multiplication. In this program each input line is of the form and should produce output such as op mump where numi and num2 are (possibly very large) nonnegative integers, op is the single character + or *, and nuwg is the integer that results from the desired calcu- lation. Be sure your interface is user friendly Optional: Allow signed integers (negative as well as positive integers), and write a method for subtraction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!