Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/salary-solution-vb-2010/
- Open the Salary Solution (Salary Solution.sln) file contained in the ClearlyVB2010\
- Chap22\Salary Solution folder. If necessary, open the designer window. Open the Code
- Editor window and study the existing code. The btnDisplay controlβs Click event procedure stores six salary amounts in a one-dimensional Integer array named intSalaries. Each salary amount corresponds to a salary code from 1 through 6. Code 1βs salary is stored in the intSalaries(0) element in the array, code 2βs salary is stored in the intSalaries(1) element, and so on. After storing the salary amounts in the array, the procedure prompts the user to enter a salary code. It then displays the amount associated with the code. Currently, the Dim statement assigns the six salary amounts to the array. Modify the procedure so that it reads the salary amounts from the salary.txt file and stores each in the array. The salary.txt file is contained in the projectβs bin/Debug folder.. Save the solution and then start and test the application. Close the
- Code Editor window and then close the solution.
- Download: http://solutionzip.com/downloads/salary-solution-vb-2010/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement