Demonstrate the use of linq

Assignment Help Basic Computer Science
Reference no: EM131076086

Design, implement, test, and debug a C# program to demonstrate the use of LINQ.  This program may be a console application or a Windows Forms application. No matter whether you choose to develop a Windows Forms application or a console application, be sure the interface is professional looking and intuitive to use for the novice end user. 

The first step is to read a text file into the program. The file should be a list of cities and states. Each line should look as follows: Chicago, IL. Read each city/state into a list. You do not need to separate the city and state into separate fields. As you read each line of the file, count up how many total cities are in the file and then present the total to the end user.

The next step is to develop a set of queries and present the results to the end user. In total you will do five Linq queries:

  • Execute a Linq query to count how many records are in the list and present the total to the end user.
  • Execute a Linq query to sort the entries in the list in ascending order and present the list of cities to the end user, in order.
  • Execute a Linq query to find all states starting with a specific letter. Prompt the user for the letter they want to look for, then present those that start with that letter to them. There is no need at this time to validate that they entered a letter.
  • Execute a Linq query to find all cities that are from a given state. Prompt the user for the state they want to look for, then present those that are from that state to them. Again there is no need to validate that they entered a valid state.
  • Last, design your own Linq query and present the results to the end user. Be creative!

Reference no: EM131076086

Questions Cloud

Create a single node that contains the inserted item : Note that insertion into an empty B-tree will create a single node that contains the inserted item.
Chemical masses that travel to the main stem of a river : Nonpoint source loads are chemical masses that travel to the main stem of a river and its tributaries in flows that are distributed over relatively long stream reaches, in contrast to those that enter at well-defined and regulated points.
Are you more likely to fall up or fall down : Please explain the difference between falling up and falling down in relation to criminal justice. Are you more likely to fall up or fall down? Why do you feel this way? ( minimum of 500 words).
Important to reduce one carbon footprint : Nowadays it is very important to reduce one's carbon "footprint" (how much carbon we produce in our daily lifestyles). Minimizing the use of fossil fuels and instead resorting to renewable sources of energy. What is the annual effective IRR of this i..
Demonstrate the use of linq : Design, implement, test, and debug a C# program to demonstrate the use of LINQ.  This program may be a console application or a Windows Forms application. No matter whether you choose to develop a Windows Forms application or a console application..
Offshore wind turbine reliability­ based design : The article "On Assessing the Accuracy of Offshore Wind Turbine Reliability­Based Design Loads from the Environmental Contour Method" (Intl. J. of Offshore and Polar Engr., 2005: 132-140) proposes the Weibull distribution with α = 1.817 and ß = .8..
Coherence protocol implementation : If we instead implement a directory based cache coherence protocol discussed in the last week, how many bits of state do we need in the entire system for the coherence protocol implementation?
What will be the per capita real incomes of a and b : ECON 321: International Economics Assignment. Suppose two economies, A and B, start out with the same very low per capita real incomes of $1,000, but A grows at 1 percent per year and B grows at 2 percent. What will be the per capita real incomes o..
What was the problem with the way nations were claiming land : In the 1500s European nations began sending explorers to claim land in America. What was the problem with the way the nation's were claiming land?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Examples of multinational corporations

Choose one large multinational corporation that operates in a number of countries to learn how its public relations activities differ from country to country. Examples of multinational corporations include General Electric, Nissan, Nestle, ExxonMo..

  Make it on platform research on hypervisors

Assignment is done already but the proposal is for a hypervisor - ie: Hyper-V, VMWare, FreeBSD Jail, etc... Which has been done but there is no supporting evidence for that platform.

  How is the tours content and function

What technologies are used to make the experince in tours memorable?

  What might affect a spreadsheet developers choice

Excel allows you to display a system date using the date stamp and the NOW function. When might a date stamp be important? Why? What might affect a spreadsheet developer's choice for the date format used to display the date.

  Write a set of programmer''s guidelines that helps avoid this

Write a set of programmer's guidelines that helps avoid this and any other system building problems that you can think of.

  Explain the difference between an object reference in java

Explain the difference between an object reference in Java and an object. Use an example to illustrate your answer.

  Write a program that reads a sentace and counts the number

write a program that reads a sentace and counts the number of alpha characters using the tolower or toupper function along with the isalpha function. Then count vowels using a switch statement. Then i have to give the total number of keystrokes.

  How the model improves buy-in from stakeholders

Support your answers with at least one peer-reviewed source, using scholarly literature. Include APA-formatted in-text citations and accompanying, congruent APA-formatted references.

  What is capacity with two shifts

Given the following data for Albert's fabricating production area:Fixed costs for one shift = $60,000. What is the capacity with two shifts? The additional fixed cost for a second shift is $40,000.

  Explaining discrete-time system which moves between states

A decision maker observes a discrete-time system which moves between states {s1,s2,s3,s4} according to the following transition probability matrix?

  Apply the s-curves to describe its development

apply the S-Curves to describe its development

  Write a program to allow additional items and prices

Write a program to allow additional items and prices to be input by the user and added to the end of the Cowboy.txt. Include a method to terminate the process.

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