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

  Create web application to be used as a loan calculator

Create an ASP.NET web application to be used as a loan calculator. The textboxes used to input data (loan amount, repayment period in months, and interest rate) should be checked for valid entries

  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.

  Create an interface that has two list boxes

Create an interface that has 2 list boxes for i) the weekly hours worked (containing integer values from 35 to 45 inclusive) and ii) the hourly rate of pay (from 9.50 to 14.00 inclusive, in increments of 0.50).

  1 meets size criteria -2 incorporates a consistent look and

1. meets size criteria -2. incorporates a consistent look and feel and an easy-to-use and consistent navigation toolset

  Write a c# program containing array that holds five integers

Write a C# program containing an array that holds five integers. Assign values to the integers.Display the integers from first to last, and then display them from last to first. Save theprogram as IntegerList.cs.

  1 design a web application using visual studionet 2012 c

1. design a web application using visual studio.net 2012 c language with the implementation of the followinga upload

  Create a console-based application named multiplication

a. Create a console-based application named Multiplication whose main() method asks the user to input and then calls a method named MultiplicationTable(), which displays the results of multiplying the integers by each of the number 2 through 10

  Development of dynamic websites

Based on Keston (2008), is LAMP the only platform to use for the development of dynamic websites? Is Visual Studio® .NET a better platform, because it uses C++ legacy code to develop secure dynamic websites

  Webiste hi sir cis2003 is the qustion sheet rubalall is

hi sir cis2003 is the qustion sheet rubal.all is the privious work for this

  Create an array of boat objects

Create an array of Boat objects. You should populate the array with as many boats as you have customers (since we assume one boat per customer), entering information into all fields of the Boat object.

  Use linq to sort the list in ascending order

Write a console app that inserts 30 random letters into a List . Perform the following queries on the List and display your results: Use LINQ to sort the List in ascending order

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