Changes between Version 4 and Version 5 of ProgrammingPrompts


Ignore:
Timestamp:
Nov 23, 2015, 1:30:32 PM (9 years ago)
Author:
Timothy Lin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingPrompts

    v4 v5  
    11= Programming Prompts
    22Feel to add good prompts into this list as you find them. This will greatly help future software team leads and new members.
    3 == Simple
    4 === Grade Analyzer
    5 '''Program Specs:''' You receive an arbitrary {{{double}}} value and you must return whether that grade constitutes an 'A', 'B', 'C', 'D', or 'E'.[[BR]][[BR]]
    6 '''Examples:'''
    7 {{{
    8 >>> 85.60
    9 B
    10 >>> 69.51
    11 C
    12 >>> 106.33
    13 A
    14 }}}
    153
    16 ===
    17 == Medium
    18 == Hard (Object-Oriented)
    19 == Hard (Syntax-Oriented)
    20 == Expert
     4The prompts are written with Java in mind, but can be adapted to most languages. The downloadable test scripts are run with Java, require the main class name to be the name of the prompt.
    215
    22 Program the entire robot code by yourself.
    23 From: nathanm
     6'''Checkerboard'''[[BR]]
     7Write a static method that takes two int parameters {{{m}}} and {{{n}}} and returns a checkerboard-patterned two-dimensional boolean array that is {{{m-by-n}}} in size. Any given checkerboard square on a checkerboard has no adjacent squares with the same color (boolean value).[[Image(https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Checkerboard_pattern.svg/2000px-Checkerboard_pattern.svg.png) width:100px]]
     8
     9== Test Scripts