Shivam Patel 9cfb576f44 much love for shorts 6 лет назад
.DS_Store initial commit 6 лет назад
Factorial.class much love for shorts 6 лет назад
Factorial.ctxt much love for shorts 6 лет назад
Factorial.java much love for shorts 6 лет назад
FactorialTest.class much love for shorts 6 лет назад
FactorialTest.ctxt much love for shorts 6 лет назад
FactorialTest.java initial commit 6 лет назад
IntegerPrinter.class much love for shorts 6 лет назад
IntegerPrinter.ctxt much love for shorts 6 лет назад
IntegerPrinter.java much love for shorts 6 лет назад
IntegerPrinterTest.class much love for shorts 6 лет назад
IntegerPrinterTest.ctxt much love for shorts 6 лет назад
IntegerPrinterTest.java initial commit 6 лет назад
LargestInteger.class much love for shorts 6 лет назад
LargestInteger.ctxt much love for shorts 6 лет назад
LargestInteger.java much love for shorts 6 лет назад
LargestIntegerTest.class much love for shorts 6 лет назад
LargestIntegerTest.ctxt much love for shorts 6 лет назад
LargestIntegerTest.java much love for shorts 6 лет назад
NormalizeAngle.class much love for shorts 6 лет назад
NormalizeAngle.ctxt much love for shorts 6 лет назад
NormalizeAngle.java much love for shorts 6 лет назад
NormalizeAngleTest.class much love for shorts 6 лет назад
NormalizeAngleTest.ctxt much love for shorts 6 лет назад
NormalizeAngleTest.java initial commit 6 лет назад
README.md initial commit 6 лет назад
ShortCalculator.class much love for shorts 6 лет назад
ShortCalculator.ctxt much love for shorts 6 лет назад
ShortCalculator.java much love for shorts 6 лет назад
ShortCalculatorTest.class much love for shorts 6 лет назад
ShortCalculatorTest.ctxt much love for shorts 6 лет назад
ShortCalculatorTest.java much love for shorts 6 лет назад
package.bluej much love for shorts 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.