CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Need help with C#

    Hello,
    Can you help me with building this C# console application:

    Write a class that reads a text files and computes the relative frequency of each letter of the
    alphabet. You use an array to store the numbers of occurrences of each letter. You use
    ToLower method to convert uppercase letters. The relative frequency is the number of
    occurrences divided to the total number of letter in the text without white spaces characters.
    Subtracting “a” give you the number of the occurrences of this letter.
    Test your program in a Console application, first with a ten lines of text and after run it
    several with larger text files and compare the results. This information can be used to break
    the Caesar code.

    Thanks in advance!

  2. #2
    Join Date
    May 2007
    Posts
    1,546

    Re: Need help with C#

    First read your class notes. Then check out the relevant examples (i'm sure there must be some). If you have issues with them, post your question here. Finally, if you still have no idea where to even begin this task, you should ask your lecturer or classmates for a bit of guidance.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

  3. #3
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Need help with C#

    I could help, but then I also missed the same classes that you did.

    We do not do homework here, ask specific questions and people here would be more than happy to help you out. If you ask for homework, you will never get answers. it is better to get a book, learn your way through examples and then try your hand on this particular problem. I am sure you would be able to resolve it.

  4. #4
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: Need help with C#

    It has been seen thousend of times that its no help to do your work for you. In real life you need to do your job and nobody can do it for you. If someone does the work for you, you will not be able to see your own problems, you will not be able to learn of your mistakes and you will stay unable to solve this easy and bigger problems in future. Cheating alwasy is cheating yourself.
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured