Arin Turpin 0dc26f268b Assignment 6 gadus atpakaļ
.DS_Store initial commit 6 gadus atpakaļ
Factorial.class Assignment 6 gadus atpakaļ
Factorial.ctxt First 6 gadus atpakaļ
Factorial.java Assignment 6 gadus atpakaļ
FactorialTest.class First 6 gadus atpakaļ
FactorialTest.ctxt First 6 gadus atpakaļ
FactorialTest.java initial commit 6 gadus atpakaļ
IntegerPrinter.class First 6 gadus atpakaļ
IntegerPrinter.ctxt First 6 gadus atpakaļ
IntegerPrinter.java First 6 gadus atpakaļ
IntegerPrinterTest.class First 6 gadus atpakaļ
IntegerPrinterTest.ctxt First 6 gadus atpakaļ
IntegerPrinterTest.java initial commit 6 gadus atpakaļ
LargestInteger.class Assignment 6 gadus atpakaļ
LargestInteger.ctxt First 6 gadus atpakaļ
LargestInteger.java Assignment 6 gadus atpakaļ
LargestIntegerTest.class First 6 gadus atpakaļ
LargestIntegerTest.ctxt First 6 gadus atpakaļ
LargestIntegerTest.java initial commit 6 gadus atpakaļ
NormalizeAngle.class First 6 gadus atpakaļ
NormalizeAngle.ctxt First 6 gadus atpakaļ
NormalizeAngle.java Assignment 6 gadus atpakaļ
NormalizeAngleTest.class First 6 gadus atpakaļ
NormalizeAngleTest.ctxt First 6 gadus atpakaļ
NormalizeAngleTest.java initial commit 6 gadus atpakaļ
README.TXT First 6 gadus atpakaļ
README.md initial commit 6 gadus atpakaļ
ShortCalculator.class First 6 gadus atpakaļ
ShortCalculator.ctxt First 6 gadus atpakaļ
ShortCalculator.java initial commit 6 gadus atpakaļ
ShortCalculatorTest.class First 6 gadus atpakaļ
ShortCalculatorTest.ctxt First 6 gadus atpakaļ
ShortCalculatorTest.java initial commit 6 gadus atpakaļ
package.bluej Assignment 6 gadus atpakaļ

README.md

Integer Printer

  • Write a program that reads an integer and prints it in :
  • binary
  • Octal
  • Hexadecimal

Normalize Angle

  • Write a program that reads an integer angle (which may be positive or negative) and normalizes it to a value between 0 and 359 degrees. Try it first with the % operator, then with floorMod.

Largest Integer

  • Using only the conditional operator, write a program that reads three integers and prints the largest. Repeat with Math.max

Factorial

  • Write a program that computes the factorial n! = 1 x 2 x ... x n, using BigInteger. Compute the factorial of 1000.

ShortValues

  • Write a program that reads in two numbers between 0 and 65535, stores them in short variables, and computes their unsigned sum, difference, product, quotient, and remainder , without converting them to int.