Separate the lines of text file into their own fields

Assignment Help Programming Languages
Reference no: EM131472054

Programming Assignment

Go and Tell Missions

You have been asked to provide a program to the Go and Tell Missions Company, which will store a list of their current missionaries. The information they have is stored in a text file. Each record of the file contains the last name, first name, state the missionary resides, the age of the missionary, the years of service, and the preference for the mission field. When the application opens, the program should display all of this data in a datagridview control. The user should have the option ofsorting the data in ascending order or descending order by the last name. The menu item File contains the second-level menu item Exit, which exits the application. The menu item Sort contains the two second-level menu items Ascending and Descending. The menu item Filter contains the four second-level menu items All, Europe, Middle East, South America, and North America. The menu item Search provides the user the ability to input a last name to retrieve the full record of the user selected.

[Note: You should make the first column containing the book title large enough to display the entire title of each book. To do this, set the AutoSizeColumnsMode property to "All Cells".]

Requirements:

1. The text file, easterndiv_missions.txt is included in your Instructions folder and should be stored in your project's bin\debug folder.

2. ****This step must be included for your assignment to be accepted. You must include three other rows in the file that include your name, your instructor's name, and another name with the appropriate data

3. Read the values of the text file into an array called missionsarray.

4. Use LINQ queries to separate the lines of the text file into their own fields called Last, First, State, Age, Years of Service, Location and display these values in a datagridview control. You will find it useful to set the datasource property of the datagridview control to the results of your LINQ query.

5. When the user clicks on the Sort menu, use LINQ queries to sort the array in ascending or descending order by Title and re-display your results in the same datagridview control. Make sure that only one option under the Sort menu appears checked at any given time.

6. When the user clicks on the Filter menu, use LINQ queries to filter the array by Europe, Middle East, South America, North America, or All. Make sure that only one option under the Filter menu appears checked at any given time.

7. When the user clicks on the Search menu, the user is prompted with an input box. The program will prompt the user for a last name. The program will utilize a try catch statement to check if the user entered a value in the input.

8. Preserve the selections from the Sort and Filter menus in your results. That is, if the user has selected to Filter the list to Middle East and then clicks Sort | Descending, the datagridview control should display the list of missionaries where the preference is the Middle East, sorted in descending order.

9. The form should open with the Sort | Ascending and Filter | All options set. The datagridview control should display these results as well.

10. Ensure that the full title can be seen for every row.

11. Include shortcuts and access keys for each menu item (such as Ctrl-X for Exit, Ctrl-A for Ascending, etc.)

As in all of your assignments, make sure that you have used appropriate programming techniques (i.e. naming of controls and variables, form has a title, internal documentation/comments are clear, formatting of any currency fields, etc.)

Attachment:- Attachments.rar

Reference no: EM131472054

Questions Cloud

Content on the open web our data choices : Data personalization on the open web us a much discussed topic. Any time we access any content on the open Web our data choices are tracked, captured.
Discuss the limitations of memory management schemes : Discuss the limitations of memory management schemes in early systems. What were the most problematic aspects of these schemes?
Is her contract with radiant heating executory or executed : The Radiant Heating and Air Conditioning Company installed a central air-conditioning unit in Randy's house. At the time of signing the contract with Radiant.
Properly apply a given technology : Which kind of feasibility is concerned with whether the organization has the skills needed to properly apply a given technology?
Separate the lines of text file into their own fields : Use LINQ queries to separate the lines of text file into their own fields called Last, First, State, Age, Years of Service, Location and display these values.
Review the case of morrow and check should morrow win case : Yates, a vice president of the Washington Irving Bank, met with Morrow. They reached an agreement whereby the bank promised to loan Morrow money at 7½ percent.
Computer and disconnect the mouse : Shut down your computer and disconnect the mouse. Boot the PC. Does your PC report any beeps or numeric error codes?
How do the viewpoints of these two authors come into play : How do the viewpoints of these two authors come into play in terms of the effectiveness of a promotional campaign?
Core aspects of computer security : What are the three (3) core aspects of Computer Security? Identify, define, and provide an example of how each can be implemented in an organization.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a perl program that asks a user for a gene id

Write a Perl program that asks a user for a gene ID or accession number and returns the sequence that corresponds to that gene. Use a hash to accomplish this.

  Compute and print annual salary of employee

Identify input, process and output to solves each problem. Compute and print the annual salary of employee. suppose the employee receive 6% increase in pay.

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  What will the exp days column contain

If expiration_date contains a value that's equivalent to November 2, 2008 and the SYSDATE function returns a value that's equivalent to December 17, 2008, what will the exp_days column contain when this code is executed

  Write program to read file having student'' test scores

Write a C++ program that reads a file named "grades.txt" consisting of students' test scores in the range 0-200 (all integer values). (The first number in the file specifies the number of grades it contains.

  Write program to asks user to enter temperatures

Write down the C++ program which asks the user to enter 12 temperatures for each month in year and store them in one-dimensional array called "temps".

  Create an ms word document containing a hierarchy chart

First, create an MS Word document containing a hierarchy chart and a data flow diagram to organize your program modules. Second, create a pseudocode program using Notepad++ to solve this problem.

  Write a marie program using a loop

Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should wr..

  Write program to calculate how much person earns

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.

  Create a program that allows stores data

Create a program that allows stores data about an entity in a record in your program, and then echo this back to the terminal - Effectively organising your data makes programs much easier to develop.

  Write menu-driven program that make coffee shop operational

The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00. Write a menu-driven program that will make the coffee shop operational.

  Write program to calculate student-s quiz average

Write a program that will calculate a student's quiz average. The program should prompt the user for the number of quizzes and then ask the user for each quiz grade.

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