This is to design an application that will populate an array of elements from a text file with the following information: John, Mary, Larry, Sally, Joe, Jack, Harre, Paul, Nora, Gore, Sam, Yam, Ham, Bam, Ian, Fin, Pool, Rase.
Display all the names in a list box reading information from an array file.
Backup the array into another one.
Create another 2 other list boxes with the following information:
AGE SALARY HOURLY RATE
43 50
32 20
55 34
32 22
43 15
12 18
45 34
60 43
43 12
34 10
77 65
23 43
21 33
45 12
66 88
92 0
43 44
18 12
Populate a 2 dimension array with the information from both list boxes.
Read the information from the 2 dimension array and calculate how much the company pays all the employees per hour.
This is what I have so far:
Imports System.IO
Public Class frmPopulateNames
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnRun.Click
Dim strFilename As StreamReader
Dim strFileNames As String
Dim strRead As String
strFilename = “file.txt”
friendFile = File.OpenText(strFilename)
strRead = friendFile.ReadLine()
MessageBox.Show(strRead)