Changes between Version 4 and Version 5 of ProgrammingPrompts
- Timestamp:
- Nov 23, 2015, 1:30:32 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProgrammingPrompts
v4 v5 1 1 = Programming Prompts 2 2 Feel to add good prompts into this list as you find them. This will greatly help future software team leads and new members. 3 == Simple4 === Grade Analyzer5 '''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.609 B10 >>> 69.5111 C12 >>> 106.3313 A14 }}}15 3 16 === 17 == Medium 18 == Hard (Object-Oriented) 19 == Hard (Syntax-Oriented) 20 == Expert 4 The 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. 21 5 22 Program the entire robot code by yourself. 23 From: nathanm 6 '''Checkerboard'''[[BR]] 7 Write 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