Project 2: FizzBuzz

Due: Tuesday the 29th of January at 4:00 pm

Purpose

Partners

This is an individual assignment.

Assignment

  1. Define a function that will do the following:
    • Given input (n), print the numbers from 1 to n
    • If the number is a multiple of 3 do not print the number, instead print 'Fizz'
    • If the number is a multiple of 5 do not print the number, instead print 'Buzz'
  2. Additional requirements
    • Must document / define the way to run the function
    • Include details in a README.md
    • Note: Someone else will validate this solution using the provided instructions, so make sure they are clear.

Sample Output

w/ n = 17

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17

Submission

Submit a PR to the sleddog/methods repository from a branch on your fork, with your solution directory under the respective language. If the language directory does not exist, create it. Name your subdirectory using your github name.

For Example, python and java are popular, so here is what it would look like:

python/student1/*
python/student2/*
java/student1/*
java/student2/*

Grading - 10 points