Flexi-FizzBuzzBazz is a web app that generates a list of items representing the consecutive sequence of integers from Start to End. When the integer is a multiple of Fizz, the string "Fizz" is added instead. Likewise, for multiples of Buzz, "Buzz" is added. For multiples of both Fizz and Buzz, "FizzBuzz" is added.
If the optional Bazz value is given, then "FizzBuzz" becomes "FizzBuzzBazz" for items that meet the optional condition.
The web page automatically scales for mobile display, and offers both mobile and desktop experience.
Flexi-FizzBuzzBazz is a Web Forms app written in C# using Visual Studio 2015 and hosted on Microsoft Azure https://flexifizzbuzzbazz.azurewebsites.net/ to explore the following:
- Bootstrap Jumbotron
- CSS
- Javascript
- C#
- Web Forms
- Azure
- asp:CompareValidator and asp:RequiredFieldValidator for user input validation
- C# Interface
- Default.aspx
- User input validation using RequiredFieldValidator, CompareValidator, RequiredFieldValidator
- Javascript function OnRunButtonPressed() for handling button press
- Default.aspx.cs
- Illustrates the use of C# Predicate and lambda expression. Given a selected “Bazz” option, the Predicate returns a True or False value depending on the outcome of the associated lambda expression, for instance
x => x < bazzValue
will result in True whenx
is less than the given value of Bazz. For example, ifx
is 4 and Bazz value is 6, then we’d expect a True, whereas ifx
is 10 while Bazz is 6, then the result is False.
- Illustrates the use of C# Predicate and lambda expression. Given a selected “Bazz” option, the Predicate returns a True or False value depending on the outcome of the associated lambda expression, for instance
- GoFizzBuzz.cs
- C# Interface usage IFizzBuzzBazz
- FizzBuzzBazz logic implementation