Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

BasicJavaRecap

This recap exercise was produced by Professor Kitlei Robert

Warm-up exercises

  1. Make a "Hello world" program.

  2. Working with command line arguments...

    1. print how many of them there are.
    2. print them in order line by line
    3. print them in order line by line, with sequence numbers
    4. print them in reverse order
    5. print their lengths
    6. supposing that they are all numbers...
      • print their sum
      • print only the even numbers
      • print them in numerical order
    7. print them in alphabetical order
    8. print only those of which there are multiple copies
  3. After that...

    1. Make a Fibonacci function, using the recursive definition.
    2. Make another version that uses iteration.
    3. Make another version that returns all the numbers up to the given value in an array.
  4. Print all divisors of the number given in the first command line argument.

  5. a. Find the function that takes the square root of numbers. b. If you have learned about Newton's method, make your own version using it.

  6. The command line arguments contains an expression in reverse Polish notation, which consists of the four basic operations and integers. Calculate the value of the expression.

    Example: 1 2 3 * +

    Result: 7 = (3 * 2) + 1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages