Verified Document

Visual Basic Programming And Algorithms

Related Topics:

Algorithms and Visual Basic Programming Exercise

Algorithms

Output: gross pay

Input: hours worked

Algorithm:

enter number of hours worked if hours worked 0 ? 40, then calculate the gross pay ( hours *

display the gross pay otherwise, display an error message end if

If hours worked are not accept the new hour worked is between 40 and 60 hours

Display gross message

Otherwise display error...

r message
Interface

Code

Public Class Form

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

calculates and displays gross pay

Const dblRATE As Double = 8.35

Dim dblHours As Double

Dim dblGross As Double

Double.TryParse (txtHours.Text, dblHours)

' calculate and display gross pay ' or display an error message

If dblHours >= 40 AndAlso dblHours

Sources used in this document:
Reference

Zak, D. (2013). Clearly Visual Basic: Programming with Microsoft Visual Basic 2012. Cengage Learning
Cite this Document:
Copy Bibliography Citation

Related Documents

Visual Basic Programming and Algorithm
Words: 931 Length: 3 Document Type:

Algorithm and Visual Basic Programming Jerry Feingold is the owners of a small restaurant who intends to develop a program that will assist him calculating the total amount used to tip a waiter at the restaurant. The program is designed to deduct any liquor charge from the overall total bill, followed by calculating the tip by using a percentage of the remainder. Finally, the program should be designed to display the

Algorithm and Visual Basic Programming
Words: 404 Length: 2 Document Type:

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)

Pseudocode and Visual Basic Programming
Words: 426 Length: 2 Document Type:

Visual Basic Programming and Pseudocode Objective of this project is to develop the following applications: Calculating sales tax on a sale Converting from Fahrenheit to Celsius Calculate a total bulk sales using number of units and price per units. Calculating sales tax on a sale This paper presents an application to calculate a sale tax. The sale tax rate is 6.48% based on the current rate in the United States. Pseudocode Output: Sales tax Input: annual sale Percentage of tax Algorithms enter

Interface and Visual Basic Programming
Words: 601 Length: 3 Document Type:

Visual Basic Programming and Interface The Interface of Average Score Solution Code Public Class Form Private Sub-Form1_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' calcualtes and displays the average solution ' declare variables Dim intAllen As Integer Dim intPeter As Integer Dim intSmith As Integer Dim intJohn As Integer Dim intAverage As Integer 'assign input to variables Integer.TryParse (txtAllen.Text, intAllen) Integer.TryParse (txtPeter.Text, intPeter) Integer.TryParse (txtSmith.Text, intSmith) Integer.TryParse (txtJohn.Text, intJohn) ' caculate average intAverage = (intAllen + intPeter + intSmith + intJohn) /

Programming & Language Prototyping Extreme
Words: 4993 Length: 12 Document Type: Term Paper

The Extreme Programming is also tailored towards a single project to be developed and maintained by a single team, however, in real life many organizations prefer to keep the crucial aspects of software development like data management and release management concerns outside the purview of regulations of a single project manager. The Extreme Programming technique is quite susceptible to adversely affect the 'bad apple' developers that do not have necessary

Music Education or Cross Platform
Words: 17690 Length: 61 Document Type: Term Paper

Aristoxenos, two centuries after Pythagoras released his model, sought to discredit the standing theories held by Pythagorean devotees. In his works, he established that numbers are not relevant to music, and that music is based on perception of what one hears, not any mathematical equation. Descartes as well as Vincenzo Galilei (Galileo's father) both also discredited the music-to-math theories that formed the revolutionary basis for Pythagoras' music work, but not

Sign Up for Unlimited Study Help

Our semester plans gives you unlimited, unrestricted access to our entire library of resources —writing tools, guides, example essays, tutorials, class notes, and more.

Get Started Now