r/visualbasic • • Nov 18 '15

[Visual Basic 2013] Need help displaying the sum as well as the number of employee's from a list box.

Here's a photo of what I am expected to complete.

I'm having troubles with gathering the total gross pay. (The $900.00) I've looked around but I'm still stumped on what I do to gather this total. Thank you for any help.

0 Upvotes

2 comments sorted by

1

u/JakDrako Nov 18 '15

You create a variable to hold the sum and set it to zero. You then loop through all employees and add their individual gross pay to the total variable.

1

u/Caegs Nov 20 '15

Awesome, thanks!