A photo created by Sean Wilson
This project will ask the user for a custome number. Then when user submits form a response based on a particular number will give users a different response depending on what number contains.
- Clone Repository
- Open repository directory
- Open index.html
- View website in browser
Or alternatively view it at https://yoshimario.github.io/roboger-neighborhood/.
-
Spec 1: The program returns a range of numbers from 0 to the users inputted number
- Input: "5"
- Output: "0, 1, 2, 3, 4, 5"
-
Spec 2: Any numbers that contain a 1: all digits are replaced (all digits) with "Beep!"
- Input: "5"
- Output: "0, Beep, 2, 3, 4, 5"
-
Spec 3: Any numbers that contain a 2: all digits are replaced (all digits) with "Boop!"
- Input: "5"
- Output: "0, 1, Boop, 3, 4, 5"
-
Spec 4: Any numbers that contain a 3: all digits are replaced (all digits) with "Won't you be my neighbor?"
- Input: "5"
- Output: "0, 1, 2, Won't you be my neighbor?, 4,5"
-
Spec 5: The number 13 should be replaced with "Won't you be my neighbor?"
- Input: "13"
- Output: "0, Beep!, Boop, Won't you be my neighbor?, 4, 5, 6, 7, 8, 9, Beep!, Beep!, Boop, Won't you be my neighbor?"
-
Spec 6: The number 21 should be replaced with "Boop".
- Input: "21"
- Output: "0, Beep!, Boop, Won't you be my neighbor?, 4, 5, 6, 7, 8, 9, Beep!, Beep!, Boop, Won't you be my neighbor?, Beep!, Beep!, Beep!, Beep!, Beep!, Beep!, Boop, Boop."
-
Spec 7: The number 32 should be replaced with "Won't you be my neighbor?"
- Input: "32"
- Output: "0, Beep!, Boop, Won't you be my neighbor?, 4, 5, 6, 7, 8, 9, Beep!, Beep!, Boop, Won't you be my neighbor?, Beep!, Beep!, Beep!, Beep!, Beep!, Beep!, Boop, Boop, Boop, Won't you be my neighbor?, Boop, Boop, Boop, Boop, Boop, Boop, Won't you be my neighbor?, Won't you be my neighbor?, Won't you be my neighbor?. Thank you for playing!"
No known bugs at this time!
- HTML
- CSS
- jQuery
- JavaScript
- Bootstrap
This software is licensed under the MIT license.
Copyright (c) 2020 Sean Wilson