A program that takes user input of an integer value and returns a range of values starting from 0 and ending at the value of the user input. If the range contains a 1, 2, or 3, those values in the range will be replaced with "beep", "boop", and "I'm sorry Dave, I can't do that" respectively.
Spec | Input | Output |
---|---|---|
Returns a range from 0 to user input value | 4 | 0, 1, 2, 3, 4 |
Replaces the value 1 in the return range with "Beep" | 4 | Output: 0, "Beep!", 1, 2, 3, 4, |
While maintaining the priot spec, Replaces the value 2 in the return range with "Boop" | 4 | Output: 0, "Beep!","Boop",3, 4 |
While maintaining the prior 2 specs, Replaces the value 3 in the return range with "I'm sorry Dave, I can't do that" | 4 | Output: 0, "Beep!","Boop","I'm sorry Dave. I can't do that", 4 |
Replace 13 with "I'm sorry Dave. I can't do that." | 13 | 0, beep, boop, Dave, 4, 5, 6, 7, 8, 9, beep, beep, boop, I'm sorry Dave. I can't do that. |
Replace 21 with "boop" | 21 | 0, beep, boop, Dave, 4, 5, 6, 7, 8, 9, beep, beep, boop, Dave, beep, beep, beep, beep, beep, beep, boop, boop |
Replace 32 with I'm sorry Dave. I can't do that" | 32 | 0, beep, boop, Dave, 4, 5, 6, 7, 8, 9, beep, beep, boop, Dave, beep, beep, beep, beep, beep, beep, boop, boop, boop, Dave, boop, boop, boop, boop, boop, boop, Dave, Dave, I'm sorry Dave. I can't do that. |
- Navigated to desktop in command: $ cd desktop
- Clone Git repository to desktop: $ git clone https://github.com/dcluukko/ind-proj-3.git
- Navigate into the directory "ind-proj-3": $ cd ind-proj-3
- Open the html file in web browser: $ open index.html
- Enter a number into the form and click the button labeled "Get Your Range!"
- The user should recieve a range from 0 to the number inputted with the numbers 1, 2, and 3 replaced with "Beep", "Boop", and "I'm sorry Dave. I can't do that"
- No known bugs.
- HTML
- CSS
- Bootstrap
- JavaScript
- jQuery
Email: Dcluukko@gmail.com for questions, comments, concerns.
{This software is licensed under the MIT license}
Copyright (c) 2020 Dana Luukko, Epicodus