Codecademy

Sign In Create Account
01/07
Explaining the Problem

FizzBuzz was a neat toy. We said Fizz and Buzz a bunch and FizzBuzz. But what if we want to do something more sophisticated with our Fizzes and Buzzes? Time to kick it up a notch.

Your mission, if you choose to accept it, is to find the average of the multiples of both 3 or 5 below 100 excluding those multiples of both 3 and 5 . You should be able to recognize that finding these numbers is what you were doing in FizzBuzz.

You will accomplish this new task by creating an object called FizzBuzzPlus with 4 functions: isFizzBuzzie, getFizzBuzzSum, getFizzBuzzCount and getFizzBuzzAverage. We will use this structure to allow us to break the problem down into manageable pieces and to simplify the code by moving code fragments that will be used repeatedly into separate functions.

Once you have read the instructions click Save & Submit Code then proceed to the next exercise.

Save & Submit Code Reset Code
Back to editor

Start Here

Each lesson starts here. Read the explanation, then follow the instructions underneath. If you get stuck, you can click on the "Hint" for help.

Enter your Code

Type your response to the instructions here, in your code editor.

Submit!

Ready to see if your code does what it should? Click "Save + Submit" to run and check your code!

Click "Save + Submit" to run your code! Your code’s output will pop up on the screen.

See What it Does

This is the terminal. When you submit your code, it will run your code and display the result here.

Sign in to Codecademy