


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Lab; Class: Application Programming for Information Systems; Subject: Information Studies; University: Syracuse University; Term: Fall 2008;
Typology: Lab Reports
1 / 4
This page cannot be seen from the preview
Don't miss anything!



' Procedure to compute tax amount from the total (of a sales) Private Sub ComputeTax(ByRef tb As TextBox, ByRef taxamount As Single) ' Tax rate is fixed at 8% Dim taxrate as Single taxrate = 0. taxamount = CSng(tb.Text) * taxrate End Function
' User gives the total sales bought in a textbox, ' Compute the amount of tax and Display in a label Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim result as Single
Call ComputeTax(TextBox1, result)
' Show the result Label1.Text = "Resulting Tax = " & Format(result, "currency") End Sub