Write a program that inputs a file of text

Assignment Help DOT NET Programming
Reference no: EM13963139

Write a program that inputs a file of text and counts the occurrence of words in the text (for example, "write" appears 1 time in this sentence; "a" appears 2 times). After counting the number of occurrences of each word, the program should output the list of the words along with the count for each.

The program should ignore punctuation, digits, and anything else but units made up of alphabetic characters. It should also ignore case. For example, consider this sentence: "The 3-time winner of the Nobel Peace Prize, Dr. Suess, last won it in 2009." The "3-time" would count for the word "time" because the "3-" would be ignored. "Dr." would count as "dr" because the period would be not considered. "2009" would not count at all.

The output can be in any order but should be formatted to look pleasing.

The program should only use facilities in C# we learned last semester. Either parallel arrays, and array of structs, or an array of objects should be used to keep the counts. It is acceptable to assume that there is an upper bound on the total number of words in the file, such as 2000.

Reference no: EM13963139

Questions Cloud

Investor deferring capital gains taxes : If the price of the stock before the ex-dividend day is $10 and it drops to $9.20 by the end of the ex-dividend day, how many years is the average investor deferring capital gains taxes? (Assume that the opportunity cost used by the investor in ev..
Dividend policies of three dividend-paying utilities : You are comparing the dividend policies of three dividend-paying utilities. You have collected the following information on the ex-dividend behavior of these firms.
What is the inductive reactance : Suppose you are looking at two loops in the plane of the page as shown. When the switch is thrown closed in the left hand coil, what is:
Catering explanation for dividends : In conventional corporate finance, firms trade off the costs of paying dividends (the differential tax costs to their investors, the issuance costs of new financing) against the benefits of dividends (signaling benefits and reduced agency costs) t..
Write a program that inputs a file of text : Write a program that inputs a file of text and counts the occurrence of words in the text (for example, "write" appears 1 time in this sentence; "a" appears 2 times).
What is the potential difference across the capacitor : Three capacitors of 5, 10, and 15 microfarads are connected in series. Potential difference across the capacitor network is 25v
Prepare a new cost analysis assuming the new price : "Prepare calculations to determine what price you will charge the business owner for the entire project." After presenting the bid to the business owner, he offered to pay 85% of what you would like to charge.
Would a mechanical clock be affected by time dilation : Does time dilation mean that time actually passes more slowly in a moving inertial reference frame, or that it seems to move slower? Would a mechanical clock be affected by time dilation? If you are traveling away from Earth at 0.7c does your hea..
What angle does the first principal maximum occur : The current in a certain ac circuit is independent of the frequency at a given voltage. Which combination of elements is most likely to comprise the circuit?

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd