Yauheni Papko 84dd7bbdd9 lab update 6 лет назад
.DS_Store initial commit 6 лет назад
Factorial.class lab update 6 лет назад
Factorial.ctxt lab update 6 лет назад
Factorial.java lab update 6 лет назад
FactorialTest.class lab update 6 лет назад
FactorialTest.ctxt lab update 6 лет назад
FactorialTest.java initial commit 6 лет назад
IntegerPrinter.class lab update 6 лет назад
IntegerPrinter.ctxt lab update 6 лет назад
IntegerPrinter.java lab update 6 лет назад
IntegerPrinterTest.class lab update 6 лет назад
IntegerPrinterTest.ctxt lab update 6 лет назад
IntegerPrinterTest.java initial commit 6 лет назад
LargestInteger.class lab update 6 лет назад
LargestInteger.ctxt lab update 6 лет назад
LargestInteger.java lab update 6 лет назад
LargestIntegerTest.class lab update 6 лет назад
LargestIntegerTest.ctxt lab update 6 лет назад
LargestIntegerTest.java initial commit 6 лет назад
NormalizeAngle.class lab update 6 лет назад
NormalizeAngle.ctxt lab update 6 лет назад
NormalizeAngle.java lab update 6 лет назад
NormalizeAngleTest.class lab update 6 лет назад
NormalizeAngleTest.ctxt lab update 6 лет назад
NormalizeAngleTest.java initial commit 6 лет назад
README.md initial commit 6 лет назад
ShortCalculator.class lab update 6 лет назад
ShortCalculator.ctxt lab update 6 лет назад
ShortCalculator.java lab update 6 лет назад
ShortCalculatorTest.class lab update 6 лет назад
ShortCalculatorTest.ctxt lab update 6 лет назад
ShortCalculatorTest.java lab update 6 лет назад
package.bluej lab update 6 лет назад

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.