Write a program that-reads the data from the file into an


Exercise 1: Suppose the file baseball.txt contains data about the performance of major league baseball players during the 2009 regular season.

Each record of the file contains four fields - name, team, atBats, and hits. Some lines of the file are:
Aaron Hill,Blue Jays,682,195
Jimmy Rollins,Phillies,672,168
Orlando Cabrera,Twins,656,186

Write a program that

- Reads the data from the file into an array of structure when the form is loaded

- When "Display Hits" is clicked, based on the team selected from the list, displays the players from that team and their hits. The players are sorted in descending order by the number of hits.

Exercise 2: Suppose the YOBS.TXT contains many names and years (in which year was each person born). Sample data in the file looks like the following:

Alan
1936
Julie
1935
Rowan
1955

Write a program that creates two files SENIORS.TXT and JUNIORS.TXT by copying all the data on people born before 1956 into the file SENIORS.TXT and the data on the others into the file JUNIORS.TXT.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Write a program that-reads the data from the file into an
Reference No:- TGS01032818

Expected delivery within 24 Hours