Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

errors cant be resolved 29 IN.java 18 Listint... G] Node.j... Node B... G Stackin... G La Messages jGRASP Messages Run 1/0 Interactions ---GRASP: operation complete.

image text in transcribed
image text in transcribed
errors cant be resolved
29 IN.java 18 Listint... G] Node.j... Node B... G Stackin... G La Messages jGRASP Messages Run 1/0 Interactions ---GRASP: operation complete. ----GRASP exec: javac - BigintegerCalculator.java BigIntegerCalculator.java i 311 error: incompatible types: BigInteger cannot be converted to it int one = new BigInteger (number); I BigIntecercalculator.java:32: error: incompatible types: Bigdager cannot be converted to int int two = new BigInteger (number); IntegerCalculator.java:36: error: int cannot be dereferenced sum - one.add(two); DigintegerCalculator.java:37: error: int cannot be dereferenced difference - one. subtract(to); BigIntegerCalcolator.java:33: error: int cannot be dereferenced produet - one.multiply(two): BigIntegercalculator.java:39: error! int cannot be dereferenced quotient - one dividendRemainder (to) igintegerCalculator.java:42 Tror int cannot be dereferenced remainder - one. remainder (two) 7 errors ----GRASP wedger exit code for process is 1. ----GRASP operation complete. 21 10 11 // import the BigInteger class 12 import java.math.BigInteger; 13 14 public class BigIntegerCalculator 25 { 16 public static void main(String[] args) 17 { 18 String number; /The first big number represented by a string 19 String number2; //The second big number represented by a strin 20 BigInteger sum; // The sum of integer one and two BigInteger difference; //The difference of integer one and two 22 BigInteger product; //The product of Integer one and two 23 BigInteger quotient; //The quotient of integer one and two 24 BigInteger remainder; //The remainder of integer one and two 25 26 27 number = "35000000000000000"; 28 number2 = "20000000000000000"; 29 30 1/Instantiate a new original object 31 int one = new BigInteger (number); 32 int two = new BigInteger (number); 33 //Instantiate a new original object 34 35 36 sum = one.add(two); 37 difference = one subtract(two); 38 product = one.multiply(two); 39 quotient = one.divideAndRemainder (two); 40 remainder = one. remainder (two); 41 42 43 //original Box 44 System.out.println(" one Number" + one): L 45 System.out.println(one); 46 System.out.println(two); 47 System.out.println(sum); VO

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions