• ADA program

    From Dirrm@21:1/5 to All on Mon Dec 12 12:21:10 2022
    I need help on writing this code? any pointers on where to begin
    " go through a set of .txt and use them to develop a pattern of appearances of letters. You will need to make every lowercase letter into its uppercase equivalent and count the letter appearances. Using your results, you are to go through an encrypted
    file and try to decrypt it using letter substitution. Then decrypt the same encrypted file using the standard table. You also have access to the original text. Output should go to a .txt file"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From AdaMagica@21:1/5 to All on Tue Dec 13 01:49:18 2022
    First step:
    So you need for each letter a number how often it occurs on average in (say) English texts. How do you do this. (Suppose fullstops, commas, question marks etc are ignored.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeffrey R.Carter@21:1/5 to Dirrm on Tue Dec 13 15:24:56 2022
    On 2022-12-12 21:21, Dirrm wrote:
    I need help on writing this code? any pointers on where to begin
    " go through a set of .txt and use them to develop a pattern of appearances of letters. You will need to make every lowercase letter into its uppercase equivalent and count the letter appearances. Using your results, you are to go through an
    encrypted file and try to decrypt it using letter substitution. Then decrypt the same encrypted file using the standard table. You also have access to the original text. Output should go to a .txt file"

    First you need to know how to read a text file. Familiarity with the standard library (http://www.ada-auth.org/standards/aarm12_w_tc1/html/AA-A.html) is helpful.

    --
    Jeff Carter
    "Measure before making 'efficiency' changes."
    Elements of Programming Style
    202

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From viviane ghada@21:1/5 to Jeffrey R.Carter on Tue Dec 13 07:15:25 2022
    On Tuesday, December 13, 2022 at 2:24:59 PM UTC, Jeffrey R.Carter wrote:
    On 2022-12-12 21:21, Dirrm wrote:
    I need help on writing this code? any pointers on where to begin
    " go through a set of .txt and use them to develop a pattern of appearances of letters. You will need to make every lowercase letter into its uppercase equivalent and count the letter appearances. Using your results, you are to go through an
    encrypted file and try to decrypt it using letter substitution. Then decrypt the same encrypted file using the standard table. You also have access to the original text. Output should go to a .txt file"
    First you need to know how to read a text file. Familiarity with the standard
    library (http://www.ada-auth.org/standards/aarm12_w_tc1/html/AA-A.html) is helpful.

    --
    Jeff Carter
    "Measure before making 'efficiency' changes."
    Elements of Programming Style
    202

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)