Question: Preston Enterprises stores employee IDs and salaries in a sequential access file named Employees.txt. Open the VB2015Chap10Preston SolutionPreston Solution (Preston Solution.sln) file. Open the Employees.txt
Preston Enterprises stores employee IDs and salaries in a sequential access file named Employees.txt. Open the VB2015\Chap10\Preston Solution\Preston Solution (Preston Solution.sln) file. Open the Employees.txt file, which is contained in the project’s bin\ Debug folder. Each line contains an employee’s ID followed by a comma and a salary amount. Close the Employees.txt window.
a. Define a structure named Employee. The structure should contain two member variables: a String variable to store the ID and a Double variable to store the salary.
b. Declare a class-level array that contains five Employee structure variables.
c. The frmMain_Load procedure should read the IDs and salaries from the Employees. txt file and store them in the class-level array. It should also add the IDs to the list box.
d. When the user selects an employee ID in the list box, the employee’s salary should appear in the lblSalary control.
e. Test the application appropriately.
Step by Step Solution
3.27 Rating (162 Votes )
There are 3 Steps involved in it
a b c d e Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Preston ... View full answer
Get step-by-step solutions from verified subject matter experts
