Question: Core Lab 2.12 [2 lab points) Create a class named BigFormula that will ask the user to enter three integers a, b, and c that
Core Lab 2.12 [2 lab points) Create a class named BigFormula that will ask the user to enter three integers a, b, and c that can have any number of digits, and then compute and report the value of this formula: u=a+b(c-a) Note that you will have to use BigInteger stuff for this Lab, so (if you didn't do Lab 2.10) you'll need to look in the Java API for the Biginteger class to see how to do the various arithmetic operations, and you'll need to look in Scanner to find a method you can use to get a BigInteger from the keyboard. To get you started, to compute the BigInteger u = a + b you can just do v = a.add(b); where a and b are BigInteger variables. Here is a test case you can use on the original formula above: a? 1000 b? 9876 c? 123456789 value 1219249373164
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
