Important chapters in the Prof's book:
Chapter 3 - Looping
Chapter 4 - Decision Making
Chapter 5 - Array
Chapter 6 - Function
Chapter 12 - Shorting
Chapter 13 - Searching
Chapter 20 - Web
Assignments:
Assignment 3B is really assignment 3A.
3A) Expand Payroll Program so that interactively repeats for 5 employees.
3B) Expand Payroll program so that repeats for 5 employees from an input file.
searchid = InputBox("ENTER EMPLOYEE ID NUMBER")
Dim fin As IO.StreamReader = IO.File.OpenText("data.txt")
Dim counter As Integer = 0
While (counter < 5)
employeeid = fin.ReadLine
hoursworked = fin.ReadLine
hourlyrate = fin.ReadLine
3C) Expand Payroll program so that repeats for as many employees as are entered interactively.
You have to use one input button. If you enter 100, it'll loop 100 times.
If you don't enter any value in the inputbox, the program will stop.
Dim employeeid as string
employeeid=inputbox("Please enter your ID")
while employeeid <> ""
....(the rest of the program data)...
employeeid=inputbox("Please enter your ID")
end while
3D) Expand Payroll program so that repeats for as many employees in the input file. (repeat as many times)
this command will read the data until the end of the file....
while (fin.peek <> -1)
end while
* Extra: I would like for the class to visit this site www.vbtutor.net
"Nice to knows" for naming variables:
The following are the rules when naming the variables in Visual Basic.