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 windows form application for the national soccer

Develop a Windows Form application for the National Soccer Association to enter the teams for each of the 8 group(input of teams for each group) - Develop the C# WinForm Application in Visual Studio 2013.

  Design and use computer package incorporating the techniques

Java source files for your controller. Note that your controller must use fuzzy rules to earn these marks, and it must be different from the example FuzzyController.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Assignment related to online role-playing games

Construct evaluation techniques to the user experience and system usability in the design process. Describe the differences in developing user interfaces for different application environments.

  Write a vbnet windows application to aid in the calculation

Write a VB.NET Windows application to aid in the calculation of reconnect charges for delinquent electric customers. When customers fail to pay their electric bill.

  Create a visual c-sharp program for an ice cream shop.

Create an Order class that includes a Customer object and an array of 10 Cone objects (the maximum number of ice cream cones a customer can order is 10).

  Create a gas price windows form application

Create a "Gas Price" Windows Form Application, here is the sample input/output: Allow user to enter gas prices for 12 month from the textbox and click the Enter button

  Add insert and edit menu options - insert will allow the

add insert and edit menu options - insert will allow the user to insert a new account in a position of his choice -

  Develop web services based application

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

  Add drop down lists for modifying the different style

add drop down lists for modifying the different style elements for the label element that displays the time.we will do

  Creating a new asp.net web site

Start by creating a folder called BegASPNET in the root of your C drive using Windows Explorer or My Computer. Inside the folder, create another folder called Site. You should end up with a folder called c: \BegASPNET \Site.

  Use a one-dimensional array to solve the following problem

Use a one-dimensional array to solve the following problem: Read in 20 numbers, each of which is between 10 and 100 inclusive.

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