Stem-and-leaf plot: Difference between revisions

From Rosetta Code
Content added Content deleted
(Minor sentence restructure and some formatting.)
(add sample data)
Line 3: Line 3:
Create a well-formatted [http://en.wikipedia.org/wiki/Stem-and-leaf_plot stem-and-leaf plot] from the following data set:
Create a well-formatted [http://en.wikipedia.org/wiki/Stem-and-leaf_plot stem-and-leaf plot] from the following data set:


<blockquote style="font-family: monospace; white-space: pre-wrap;">110 436 124 109 440 330 53 352 315 452 54 49 334 102 432 123 442 125 97 104 11 446 123 360 324 427 451 329 139 42 324 320 450 100 87 414 305 21 375 324 360 123 33 378 37 66 41 321 68 356 407 448 5 128 81 361 419 134 147 146</blockquote>
XXX provide some sample data (2-3 digit integers (to avoid discussing rounding) with an interesting distribution)


The primary intent of this task is the presentation of information. It is acceptable to hardcode the data set or characteristics of it (such as what the stems are) in the example, insofar as it is impractical to make the example generic to any data set. For example, in a computation-less language like HTML the data set may be entirely prearranged within the example; the interesting characteristics are how the proper visual formatting is arranged.
The primary intent of this task is the presentation of information. It is acceptable to hardcode the data set or characteristics of it (such as what the stems are) in the example, insofar as it is impractical to make the example generic to any data set. For example, in a computation-less language like HTML the data set may be entirely prearranged within the example; the interesting characteristics are how the proper visual formatting is arranged.


If possible, the output should not be a bitmap image. <code>Monospaced plain text</code> is acceptable.
If possible, the output should not be a bitmap image. <tt>Monospaced plain text</tt> is acceptable.

Revision as of 01:53, 14 December 2009

This is an idea for a task, incomplete and with no actual examples, and so it is not yet marked with the task template. —Kevin Reid 00:27, 14 December 2009 (UTC)

Create a well-formatted stem-and-leaf plot from the following data set:

110 436 124 109 440 330 53 352 315 452 54 49 334 102 432 123 442 125 97 104 11 446 123 360 324 427 451 329 139 42 324 320 450 100 87 414 305 21 375 324 360 123 33 378 37 66 41 321 68 356 407 448 5 128 81 361 419 134 147 146

The primary intent of this task is the presentation of information. It is acceptable to hardcode the data set or characteristics of it (such as what the stems are) in the example, insofar as it is impractical to make the example generic to any data set. For example, in a computation-less language like HTML the data set may be entirely prearranged within the example; the interesting characteristics are how the proper visual formatting is arranged.

If possible, the output should not be a bitmap image. Monospaced plain text is acceptable.