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

  An organization can use a management system

Write a 750 -ways in which an organization can use a management system to manage file and print resources for a group of Windows Servers®.

  A network analyzer displays the following ip datagram

A network analyzer displays the following IP datagram that carries a UDP segment. Use the IP and UDP headers to answer the following questions

  Determine which cpu of the two is faster and why

From the first e-Activity, identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing, and 2) the CPU of one (1) other computer. Compare the instruction sets and clock rates of eac..

  Produce a report by salesman

Do a compile-time initialization of the salesperson's names and product list. Produce a report by salesman, showing the total sales per product.

  Evaluate the megatrend of demographics in the it field

Evaluate the megatrend of demographics in the IT field. Give your opinion as to why IT managers must understand this megatrend when selecting talent for organizational positions.

  Useful principle about it management

The novel is generally about what IT Development and Operations (Dev-Ops) has to learn from manufacturing. Summarize as a list, what these recommendations are. For each recommendation, list a page in the novel where the recommendation is made or r..

  Assignment- quantifying risk and its impact

Assignment: Quantifying Risk and Its Impact, Assignment Instructions: Review the risk events identified in the Gauchito Project Plan in Doc Sharing. Using the Gauchito risk events as an example, make a list of at least ten risk events to your proje..

  Describe how the systems analyst can help with project

The set of skills for a systems analyst in Chapter 1 can also be used to assist the discussion. Using the project management principles and responsibilities presented in this chapter. In four paragraphs each answer the questions below 1. Descri..

  What is the command you would use to compile the file

What is the command you would use to compile the file Addition.java?

  Which is used to keep the call by reference value as intact

Which is used to keep the call by reference value as intact?

  Database trends

Database Trends

  Verify that all required fields are complete

Use alerts to inform the user if information is missing and focus on the missing field for them to provide the needed data.

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