Question: Solve this question using C# language please. weather - Notepad File Edit Format View Help 1/1/2018:0;29:10 1/2/2018;0; 16;1 1/3/2018:0;32:1 1/4/2018;0; 34; 15 1/5/2018;0; 19;2 1/6/2018:0;21;2

 Solve this question using C# language please. weather - Notepad FileEdit Format View Help 1/1/2018:0;29:10 1/2/2018;0; 16;1 1/3/2018:0;32:1 1/4/2018;0; 34; 15 1/5/2018;0;19;2 1/6/2018:0;21;2 1/7/2018;0; 24;2 1/8/2018;0;41;3 1/9/2018;0;43:29 1/10/2018;0;56:30 1/11/2018:0.02:56:37 1/12/2018;0.92:58:43 1/13/2018;0.39:57:21 1/14/2018;0;21;8 1/15/2018;0;31;9

Solve this question using C# language please.

weather - Notepad File Edit Format View Help 1/1/2018:0;29:10 1/2/2018;0; 16;1 1/3/2018:0;32:1 1/4/2018;0; 34; 15 1/5/2018;0; 19;2 1/6/2018:0;21;2 1/7/2018;0; 24;2 1/8/2018;0;41;3 1/9/2018;0;43:29 1/10/2018;0;56:30 1/11/2018:0.02:56:37 1/12/2018;0.92:58:43 1/13/2018;0.39:57:21 1/14/2018;0;21;8 1/15/2018;0;31;9 1/16/2018;0:41:17 1/17/2018;0.2;44;14 1/18/2018;0;17;0 1/19/2018:0; 38;0 1/20/2018;0;51;10 1/21/2018;0;56;18 1/22/2018;0;61;26 1/23/2018;0.42;57:30 1/24/2018;0;51;21 1/25/2018;0; 45:18 1/26/2018;0; 48:19 1/27/2018;0:5222 1/28/2018;0.13:54:46 1/29/2018:0.32;52:38 1/30/2018;0.06:44; 21 1/31/2018: 0:31:15 Programming Problems 1. Weather Data In the student sample program files for this chapter, you will find a text file named weather.txt. The file contains weather data for the month of January 2018. Each line in the file contains the following four pieces of data for one day: Date Precipitation High temperature Low temperature The data stored in each line is formatted in the following way: Date; Precipitation;High Temp; LowTemp Notice that the data items are separated by semicolons. The first line in the file looks like this: 1/1/2018;0;29:10 The data stored in this line are: Date = 1/1/2018 Precipitation = 0 inches High temperature = 29 Low temperature = 10 Design a structure that has fields for the four pieces of data. In an application, read the file and store each day's data in an instance of the structure. The structure in stances should be stored in a List. TIP: Use the Split method that we discussed in Chapter 8 to tokenize each line into the four pieces of data. The application should let the user select a date using a Date TimePicker control. The control should be configured so it only allows the user to select dates in January 2018. When the user selects a date, the application should display the weather data for that date

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!