Coder Social home page Coder Social logo

programming-challenge's Introduction

Programming Challenge

This is the Pig Latin programming challenge.

The challenge is to convert an English sentence into Pig Latin.

  • You can choose to complete it in JS, PHP, C# or Java. Choose whichever language you are most comfortable with (unless you've already been requested to use a different language)
  • It should not take more than 2 hours.

Description

Pig Latin takes the first consonant (or consonant cluster) of an English word, moves it to the end of the word and appends an "ay". If a word begins with a vowel you just append "way".

Examples

English Pig Latin
hello ellohay
shellfish ellfishshay
envelope envelopeway

Bonus Challenge (Optional)

Restore the first letter case of the Pig Latin word to match the English word.

Getting Started

Using Open Git Bash

  1. Clone the repository.

    $ git clone https://github.com/WorkingMouse/programming-challenge.git
    $ cd programming-challenge
  2. Create and checkout a branch, call it submission.

    # Inside your programming-challenge directory
    $ git checkout -b submission
  3. Complete the solution for one of the languages in the translateEnglishToPigLatin function.
    You may add additional functions, imports or phrases to assist with your solution if you wish.

  4. Test your application by running it. See Running in the README.md for that language.

  5. Commit your changes to your submission branch Replace <message> with a description of your change, e.g. "Completed Solution".

    # Inside your programming-challenge directory
    $ git add .
    $ git commit -m "<message>"
  6. Submit your solution. See Submission.

Submission

YOU WILL NOT BE ABLE TO PUSH DIRECTLY TO THIS REPOSITORY!!

Using Git Bash

  1. Create a patch of your work by running:
    Replace <name> with your name.

    # Inside your programming-challenge directory
    $ git diff master..submission > programming-challenge-<your name>.patch
  2. Reply to you programming challenge request email with your patch file programming-challenge-<name>.patch.

programming-challenge's People

Contributors

chris-workingmouse avatar codebots-platform avatar kellielutze-wm avatar workingmouse 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.