chitraBegerhotta 1bd1f7e67d Committing BasicComputations преди 6 години
.DS_Store initial commit преди 6 години
Factorial.class Committing BasicComputations преди 6 години
Factorial.ctxt Committing BasicComputations преди 6 години
Factorial.java Committing BasicComputations преди 6 години
FactorialTest.class Committing BasicComputations преди 6 години
FactorialTest.ctxt Committing BasicComputations преди 6 години
FactorialTest.java initial commit преди 6 години
IntegerPrinter.class Committing BasicComputations преди 6 години
IntegerPrinter.ctxt Committing BasicComputations преди 6 години
IntegerPrinter.java Committing BasicComputations преди 6 години
IntegerPrinterTest.class Committing BasicComputations преди 6 години
IntegerPrinterTest.ctxt Committing BasicComputations преди 6 години
IntegerPrinterTest.java initial commit преди 6 години
LargestInteger.class Committing BasicComputations преди 6 години
LargestInteger.ctxt Committing BasicComputations преди 6 години
LargestInteger.java Committing BasicComputations преди 6 години
LargestIntegerTest.class Committing BasicComputations преди 6 години
LargestIntegerTest.ctxt Committing BasicComputations преди 6 години
LargestIntegerTest.java initial commit преди 6 години
NormalizeAngle.class Committing BasicComputations преди 6 години
NormalizeAngle.ctxt Committing BasicComputations преди 6 години
NormalizeAngle.java Committing BasicComputations преди 6 години
NormalizeAngleTest.class Committing BasicComputations преди 6 години
NormalizeAngleTest.ctxt Committing BasicComputations преди 6 години
NormalizeAngleTest.java initial commit преди 6 години
README.md initial commit преди 6 години
ShortCalculator.class Committing BasicComputations преди 6 години
ShortCalculator.ctxt Committing BasicComputations преди 6 години
ShortCalculator.java Committing BasicComputations преди 6 години
ShortCalculatorTest.class Committing BasicComputations преди 6 години
ShortCalculatorTest.ctxt Committing BasicComputations преди 6 години
ShortCalculatorTest.java Committing BasicComputations преди 6 години
package.bluej Committing BasicComputations преди 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.