2006week3_2 - Week 3 Darts In darts there are 62 different...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 3 Darts In darts there are 62 different possible scores : single 1 - 20, double 1 - 20 (i.e. 2, 4, 6, 8 ), treble 1 - 20 (i.e. 3, 6, 9, 12 ), 25 and 50. To finish, your final dart must be a double or a fifty. The highest possible score on which you can finish a game with three darts is therefore 170 (treble 20, treble 20, 50). Write a program that, given a target score, shows all the possible three-dart finishes. So for example if the target score is 151, one answer is treble 19, treble 20, double 17. Neill’s Optional Extra : Most darts players have “preferred” shots that they practice often e.g. treble 19, double 16 and so on. Modify the above code so that it only gives the “best” option for any particular score. Roman Numerals Adapted from http://mathworld.wolfram.com/RomanNumerals.html : “Roman numerals are a system of numerical notations used by the Romans. They are an additive (and subtractive) system in which letters are used to denote certain ”base” numbers, and arbitrary numbers are then denoted using combinations of symbols. Unfortunately, little is known about the origin of the Roman numeral system.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online