shakila bfe754520f Completed Classes# 6 gadus atpakaļ
.DS_Store initial commit 6 gadus atpakaļ
Factorial.class Completed Classes# 6 gadus atpakaļ
Factorial.ctxt Completed Classes# 6 gadus atpakaļ
Factorial.java Completed Classes# 6 gadus atpakaļ
FactorialTest.class Completed Classes# 6 gadus atpakaļ
FactorialTest.ctxt Completed Classes# 6 gadus atpakaļ
FactorialTest.java initial commit 6 gadus atpakaļ
IntegerPrinter.class Completed Classes# 6 gadus atpakaļ
IntegerPrinter.ctxt Completed Classes# 6 gadus atpakaļ
IntegerPrinter.java Completed Classes# 6 gadus atpakaļ
IntegerPrinterTest.class Completed Classes# 6 gadus atpakaļ
IntegerPrinterTest.ctxt Completed Classes# 6 gadus atpakaļ
IntegerPrinterTest.java initial commit 6 gadus atpakaļ
LargestInteger.class Completed Classes# 6 gadus atpakaļ
LargestInteger.ctxt Completed Classes# 6 gadus atpakaļ
LargestInteger.java initial commit 6 gadus atpakaļ
LargestIntegerTest.class Completed Classes# 6 gadus atpakaļ
LargestIntegerTest.ctxt Completed Classes# 6 gadus atpakaļ
LargestIntegerTest.java initial commit 6 gadus atpakaļ
NormalizeAngle.class Completed Classes# 6 gadus atpakaļ
NormalizeAngle.ctxt Completed Classes# 6 gadus atpakaļ
NormalizeAngle.java initial commit 6 gadus atpakaļ
NormalizeAngleTest.class Completed Classes# 6 gadus atpakaļ
NormalizeAngleTest.ctxt Completed Classes# 6 gadus atpakaļ
NormalizeAngleTest.java initial commit 6 gadus atpakaļ
README.md initial commit 6 gadus atpakaļ
ShortCalculator.class Completed Classes# 6 gadus atpakaļ
ShortCalculator.ctxt Completed Classes# 6 gadus atpakaļ
ShortCalculator.java Completed Classes# 6 gadus atpakaļ
ShortCalculatorTest.class Completed Classes# 6 gadus atpakaļ
ShortCalculatorTest.ctxt Completed Classes# 6 gadus atpakaļ
ShortCalculatorTest.java Completed Classes# 6 gadus atpakaļ
package.bluej Completed Classes# 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.