GithubHelp home page GithubHelp logo

miami78 / pingpong Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.83 MB

A web application that takes a number from a user and returns a range of numbers from 1 to the chosen number with a few exceptions.

Home Page: https://miami78.github.io/pingpong/

License: MIT License

CSS 25.17% HTML 44.31% JavaScript 30.51%
ping-pong javascript css html bootstrap

pingpong's Introduction

                                      Ping Pong Project
  • A web application that takes a number from a user and returns a range of numbers from 1 to the chosen number with a few exceptions.

             By Miami Larry
    

Description

  • A web application that takes a number from a user and returns a range of numbers from 1 to the chosen number with the following exceptions:
  1. Numbers divisible by 3 are replaced with "ping". Input 3, Output: [1, 2, "ping"].
  2. Numbers divisible by 5 are replaced with "pong". Input 5, Output: [1, 2, "ping", 4, "pong"].
  3. Numbers divisible by 15 are replaced with "pingpong" Input 15, Output: [1, 2, "ping", 4, "pong", "ping", 7, 8, "ping", "pong", 11, "ping", 13, 14, "ping pong"].

Specifications:

  • Program only accepts numbers between 1 and 400
  • Program can take the user's number and output a list that counts up to that number.
  • Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 3 with the word "ping".
  • Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 5 with the word "pong".
  • Program can take the user's number and output a list that counts up to that number and replaces numbers divisible by 3 and 5 with the words "ping pong".

Setup/Installation Requirements

Technologies Used

HTML, CSS, and Bootstrap.

License

MIT License

Copyright (c) 2018 Miami Larry

pingpong's People

Contributors

miami78 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.