Talk:Letter frequency: Difference between revisions

From Rosetta Code
Content added Content deleted
(Task description)
 
(→‎Task description: Why complicate?)
Line 10: Line 10:


--[[User:PauliKL|PauliKL]] 13:03, 19 September 2011 (UTC)
--[[User:PauliKL|PauliKL]] 13:03, 19 September 2011 (UTC)

:I took it as anything that is un-said should be whatever is convenient to the implementer.
:* ASCII? Count whatever the file open routine makes most easy.
:* Case sensitivity? Count what you get without applying any uppercase/lowercase filters.
:* Output format? whatever is convenient.
:Open the file in your code? I interpreted this as being a ''requirement''.
:This leaves the guts as being a way to iterate through the characters keeping count. --[[User:Paddy3118|Paddy3118]] 14:58, 19 September 2011 (UTC)

Revision as of 14:58, 19 September 2011

Task description

More detailed task description is needed. For example, should we only count ASCII letters A-Z? Case in-sensitive? Maybe the results can be displayed with whatever method is the most convenient? I assume opening the file is required (not just handle a file that is already open)?

Since the first solutions were copied from another page and may not be correct solutions, those should be marked somehow. (Was there some specific tag for this purpose?) At least the Pascal solution seems to have nothing to do with the task.

--PauliKL 13:03, 19 September 2011 (UTC)

I took it as anything that is un-said should be whatever is convenient to the implementer.
  • ASCII? Count whatever the file open routine makes most easy.
  • Case sensitivity? Count what you get without applying any uppercase/lowercase filters.
  • Output format? whatever is convenient.
Open the file in your code? I interpreted this as being a requirement.
This leaves the guts as being a way to iterate through the characters keeping count. --Paddy3118 14:58, 19 September 2011 (UTC)