/BrianSuarez_Assignment1

This is the first assignment in the CIS 365 class

Primary LanguageJavaMIT LicenseMIT

BrianSuarez_Assignment1

Name

Assignment1

Date Created

April 3rd, 2018

Description of Project

This is the first assignment of CIS 365. This assignment contains 4 Java programs:

Problem 1: FizzBuzz.java

  • Prints numbers 1 to 100
  • Except for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz".
  • For numbers which are multiples of both three and five print "FizzBuzz"

Problem 2: Primes.java

  • Prints the 'n'th prime number. Prompts user to enter n value.

Problem 3: Reverse.java

  • Prompts user for a string and prints the string in reverse order.

Problem 4: Unique.java

  • Determines if String[] argument elements are unique
    • Return true if every element in the array is unique.
    • Return false if two or more elements are the same.