Cloud Computing

Cloud Computing simulates an environment where a student can write code subject to certain requirements.  In this example, the language is javascript, and the requirements are:

  • A For Statement containing a Variable Declaration.  For example, for (i=0; i<4; i++) { var x = 10 * i; doSomething(x) }
  • An If Statement.  For example, if (color === 'orange') {shout()}
  • A While Statement.  For example, while (y>0) {y--}

 Continue reading

Roman Numerals Challenge

Coding challenge requirements:

1. Design a regular expression which matches VALID roman numerals only.
2. Create a program which converts roman numerals to arabic numbers (what we use today) and vice-versa.
3. The program should be SCALABLE, meaning that if I extend the roman numerals beyond M, you do not have to re-write your program.
4. Bonus: The program attempts to minimize the total number of lines.

 Continue reading