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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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