8. Write a visual basic program that accepts basic pay, allowances and tax of ten employees computes gross pay and net pay of each of the employee.

Using Visual Basic, it is not a very difficult task to do.

However, you will need to know from your course:
1. how to create the GUI (graphics user-interface) either by drag-and-drop, or programatically. You will need buttons to prompt entry from the user, calculate gross pays, have an input window, an output window, and a quit button, etc.
2. how the arithmetic is worked out (tax tables, deductions, etc.
3. how to make a loop for the 10 employees, and how to indicate to the program to stop requesting input (a quit button, for example).
Reviwe the cours material, attempt to do the program, and post any difficulties you encounter specifying what you have done so far.
Good luck!

Write a program that allows the user to input a total dollar amount for an online shopping order and computers and outputs the shipping cost based on the following schedule

Order total Ship within USA Ship to Canada
Less than $ 50.00 $6.00 $ 8.00
$ 50.01- $ 100.00 $ 9.00 $ 12.00
$ 100.01- $150.00 $ 12.00 $ 15.00
Over $ 150.00 Free Free

dim b as integer

To write a Visual Basic program that accepts basic pay, allowances, and tax of ten employees and calculates their gross and net pay, follow these steps:

Step 1: Create a new Visual Basic project in your preferred Integrated Development Environment (IDE).

Step 2: Design the User Interface (UI):
a. Drag and drop a label control to display the prompt message.
b. Drag and drop ten text box controls to enter basic pay, allowances, and tax for each employee.
c. Drag and drop ten command buttons to calculate the gross and net pay for each employee.
d. Drag and drop ten label controls to display the results (gross pay and net pay) for each employee.

Step 3: Write the code to calculate the gross and net pay for each employee:
a. Double-click on the first command button.
b. In the code editor, write the following code to calculate the gross and net pay:

```visualbasic
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' Employee 1
Dim basicPay1 As Double = Double.Parse(TextBox1.Text)
Dim allowances1 As Double = Double.Parse(TextBox2.Text)
Dim tax1 As Double = Double.Parse(TextBox3.Text)
Dim grossPay1 As Double = basicPay1 + allowances1
Dim netPay1 As Double = grossPay1 - tax1
Label1.Text = "Gross Pay: " & grossPay1.ToString()
Label2.Text = "Net Pay: " & netPay1.ToString()

' Repeat the above code for the remaining 9 employees by changing the TextBox and Label numbers (2-10).
End Sub
```

Step 4: Repeat the above code for the remaining 9 command buttons by changing the TextBox and Label numbers (2-10).

Step 5: Run the program and input the basic pay, allowances, and tax for each employee in the corresponding text boxes.

When you click on the command buttons, the program will calculate the gross and net pay for each employee and display the results in the corresponding labels.