Question: You are to create a program that uses the turtle graphics routines to draw tally marks representing numbers. Briefly, a user should be asked for
You are to create a program that uses the turtle graphics routines to draw tally marks representing numbers. Briefly, a user should be asked for a number, and then tally marks should be drawn equivalent to the number.
Tally marks are used to aid counting. As numbers are counted, each number encountered is represented by a short vertical line, except that every fifth number will instead be represented by a diagonal line passing through the previous four vertical lines.
Your program should be able to draw tallies for numbers up to at least 100.
Each group of 5 tallies should be clearly separated from other groups.
When you have to draw tallies, each row of the drawing should be able to hold at least 10 (i.e. 2 sets of 5) and at most 25 (i.e. 5 sets of 5) tally marks. You may choose how many a row should hold (anywhere from 2 to 5 sets of 5), but should make sure that a window easily displays up to 100 tallies.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
