Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 1.03 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.03 KB

MavPASS_20210923

Logic Problem Day! The children's game of "FizzBuzz"

Today we took a break from revisiting course work. It's a relax day to recover from this week's quiz!
We take a crack at a very common coding interview question - implementing the game of FizzBuzz.


What is FizzBuzz?
• Played by two people counting up in turn.
• Every time there is a Multiple of 3 you say “Fizz”
• Every time there is a Multiple of 5 you say “Buzz”
• Every time there is a Multiple of BOTH you say “FizzBuzz”

The logic problem
• Create a program that plays FizzBuzz for the numbers 1 through 100


The code uploaded to this repository would be considered "Best Practice" because no single line of code is repeated, and it is easily maintainable. We demonstrate this by adding more rules, such as saying "Foo" every time there is a multiple of 7.


As always, if you have any question please send me an email at thomas.lauer@mnsu.edu.

Have a great weekend, and I will see you on Tuesday!