Skip to content

A Web Forms app written in C# using Visual Studio 2015 and hosted on Microsoft Azure.

Notifications You must be signed in to change notification settings

kchindev/Flexi-FizzBuzzBazz-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexi-FizzBuzzBazz

Description

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.

Language and Tools

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

C# and Web Forms specific items such as

  • asp:CompareValidator and asp:RequiredFieldValidator for user input validation
  • C# Interface

Code hightlights

  • 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 when x is less than the given value of Bazz. For example, if x is 4 and Bazz value is 6, then we’d expect a True, whereas if x is 10 while Bazz is 6, then the result is False.
  • GoFizzBuzz.cs
    • C# Interface usage IFizzBuzzBazz
    • FizzBuzzBazz logic implementation

References for publishing to Microsoft Azure

Sample screenshot

flex-fizzbuzzbazz screenshot