WEATHER DATA
In the student sample progr4n 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;HighTemp;LoirTemp
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 instances 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 DateTimePicker 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.
Want to see the full answer?
Check out a sample textbook solutionChapter 9 Solutions
Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
- Unit 1 Assignment 1 – Loops and Methods (25 points) Task: You are working for Kean University and given the task of building an Email Registration System. Your objective is to generate a Kean email ID and temporary password for every new user. The system will prompt for user information and generate corresponding credentials. You will develop a complete Java program that consists of the following modules: Instructions: 1. Main Method: ○ The main method should include a loop (of your choice) that asks for input from five users. For each user, you will prompt for their first name and last name and generate the email and password by calling two separate methods. Example о Enter your first name: Joe Enter your last name: Rowling 2.generateEmail() Method: This method will take the user's first and last name as parameters and return the corresponding Kean University email address. The format of the email is: • First letter of the first name (lowercase) + Full last name (lowercase) +…arrow_forwardI have attached my code, under I want you to show me how to enhance it and make it more cooler and better in graphics with following the instructions.arrow_forwardUsing R languagearrow_forward
- Using R languagearrow_forward(Using R language)arrow_forwardAfter our initial deployment for our ML home based security system, the first steps we took to contribute further to the project, we conducted load testing, tested and optimize for low latency, and automated user onboarding. What should be next?arrow_forward
- Why investing in skills and technology is a critical factor in the financial management aspect of system projects.arrow_forwardwhy investing in skills and technology is a critical factor in the financial management aspect of systems projects.arrow_forwardWhy are requirements changing a significant source of risks in system projects?arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT