Skip to main content
Undergraduate 398 words

Visual Basic net pay and revenue calculation exercises

~2 min read
✍️ How to write this paper — writing tools ▾
Essay 398 words

¶ … Visual Basic Programming and Algorithm

Solution to Chapter 5 Exercise

Code of Net Pay Project

' Purpose: To display Net Pay

' Programmer: on

Public Class Form1

Private Sub-Label1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

End Sub

Private Sub-Form1_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub-Label2_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click

End Sub

Private Sub-Button1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

End Sub

Private Sub-TextBox3_TextChanged (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged

End Sub

Private Sub-Label3_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click

End Sub

End Class

Solution to Chapter 5 Exercise 5

Code of Net Pay Project

' Purpose: To display total cellular ordered ' Programmer: on

Public Class Form1

Private Sub-Form1_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub-TextBox2_TextChanged (ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub-Button4_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

End Sub

End Class

Chapter 6: Exercises 1

Private Sub-btnCalc_Click (sender As Object,

e As EventArgs) Handles btnCalc.Click

' calculates and displays the annual net income

Dim decRevenue As Decimal

Dim decExpenses As Decimal

Dim decNetIncome As Decimal

Decimal.TryParse (txtRevenue.Text, decRevenue)

Decimal.TryParse (txtExpenses.Text, decExpenses)

decNetIncome = decRevenue -- decExpenses

lblNetIncome.Text = decNetIncome.ToString ( "C2")

End Sub

(Zak, 2014).

Chapter 6: Exercises 6

Output: amount of revenue generated for Orchestra, Main floor, and Balcony categories

Input: number of ticket sold for Orchestra

number of ticket sold for Main floor

number of ticket sold for Balcony

Algorithm:

1. enter the cost of Orchestra seating

2. enter the cost of Main floor seating

3. enter the cost of Balcony seating

77 Words Hidden
4. enter the number of ticket sold for Orchestra 5. enter the number of ticket sold for Main floor 6. enter the number of ticket…
Cite This Paper
PaperDue. (2016). Visual Basic net pay and revenue calculation exercises. PaperDue. https://www.paperdue.com/essay/algorithm-and-visual-basic-programming-2160783

Always verify citation format against your institution’s current style guide requirements.