Skip to content

A classic programming exercise that replaces number divided by 3 and/or 5 with "ping" and/or "pong". BDD and MSTest practice.

Notifications You must be signed in to change notification settings

sjullieb/csharp-ping-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Ping Pong

A program that returns a sequence of numbers from 0 till the user inputted converted by special rules, Created 2/12/2019

By Yulia Shidlovskaya

Description

A program that uses behavior-driven development to take a number from a user and returns a sequence of numbers from 0 till inputted number, but some of them are replaced with words "ping" and "pong". It uses the following specifications:

  • The program doesn't replace a number from the sequence if it is not divided by 3 and by 5;
    • Example Input Number: 1
    • Example Output: 1
  • The program replaces a number from a sequence with "ping" if it is divided by 3;
    • Example Input Number: 3
    • Example Output: "ping"
  • The program replaces a number from a sequence with "pong" if it is divided by 5;
    • Example Input Number: 5
    • Example Output: "pong"
  • The program replaces a number from a sequence with "ping-pong" if it is divided by 3 and by 5;
    • Example Input: 15
    • Example Output: "ping-pong"

Setup/Installation Requirements

Known Bugs

No known bugs

Support and contact details

If you run into any issues or have questions, ideas or concerns. Please email me at sjullieb@gmail.com

Technologies Used

  • C#

License

MIT

Copyright (c) 2019 Yulia Shidlovskaya

About

A classic programming exercise that replaces number divided by 3 and/or 5 with "ping" and/or "pong". BDD and MSTest practice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published