Skip to content

breaclark/beep-boop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beep Boop

A program that takes an input and returns a list of numbers up to and including that number, replacing some with "Beep!", "Boop!", or "I'm sorry, Dave. I'm afraid I can't do that." depending on the numbers. March 30, 2018

By Brea Clark

Specs

Spec Input Output
Program returns 0 when 0 is input 0 [0]
Program returns numbers from 0 to the input number 3 [0,1,2,3]
Program replaces the first number that contains a 0 with "Beep!" 3 ["Beep!",1,2,3]
Program replaces the first number that contains a 1 with "Boop!" 3 ["Beep!","Boop!",2,3]
Program replaces the first number that is divisible by 3 with "I'm sorry, Dave. I'm afraid I can't do that." 3 ["Beep!","Boop!",2,"I'm sorry, Dave. I'm afraid I can't do that."]
Program replaces the all numbers that contains a 0 with "Beep!" 10 ["Beep!","Boop!",2,"I'm sorry, Dave. I'm afraid I can't do that.",4,5,6,7,8,9,"Beep!"]
Program replaces the all numbers that contains a 1 with "Boop!" and overrides the "0" rule 10 ["Beep!","Boop!",2,"I'm sorry, Dave. I'm afraid I can't do that.",4,5,6,7,8,9,"Boop!"]
Program replaces the all numbers that are divisible by 3 with "I'm sorry, Dave. I'm afraid I can't do that." and overrides the "0" and "1" rules 12 ["Beep!","Boop!",2,"I'm sorry, Dave. I'm afraid I can't do that.",4,5,"I'm sorry, Dave. I'm afraid I can't do that.",7,8,"I'm sorry, Dave. I'm afraid I can't do that.","Boop!","Boop!","I'm sorry, Dave. I'm afraid I can't do that."]

Setup/Installation Requirements

  1. Clone this repository
  2. Open in a browser

Known Bugs

  • No known bugs.

Technologies Used

  • HTML
  • CSS
  • Javascript

Support and contact details

Email me at breatortilla@gmail.com for support

License

Copyright (c) 2018 Brea Clark

About

M1-D15 Independent Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published