Big Powers of 2 Assignment

From CSE231 Wiki
Revision as of 05:23, 22 September 2022 by Cosgroved (talk | contribs) (→‎Code To Use)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Motivation

Prepare to use BigInteger in the Fibonacci exercise.

BigInteger Docs

When integers git too big to be stored in an int or a long, we use BigInteger.

Group Warmup

BigPowerOfTwoUtils

class: BigPowerOfTwoUtils.java Java.png
methods: powerOf2
package: bigpoweroftwo.group
source folder: student/src/main/java

method: public static BigInteger powerOf2(int n) Sequential.svg (sequential implementation only)


Client

class: BigPowerOfTwoClient.java Noun Project stopwatch icon 386232 cc.svg
package: bigpoweroftwo.client
source folder: src/main/java

Testing Your Solution

class: _BigPowerOfTwoTestSuite.java Junit.png
package: bigpoweroftwo.group
source folder: testing/src/test/java