Pseudocode and Visual Basic Programming

Total Length: 426 words ( 1 double-spaced pages)

Total Sources: 0

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 the annual sales enter the sales tax rate

Calculate sale tax by multiplying total sales by tax rate (sale *6.48%)

Display sale tax on a sale

Program Interface

Code

Public Class Form1

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

' calculate sale tax of a sale ' assign variable

Dim intSale As Integer

Dim intTax As Integer

' assign input to variables

Integer.TryParse (txtSale.Text, intSale)

Integer.TryParse (txtTax.Text, intTax)

'display tax rate

Const dbTax As Double = 0.0648

' calculate sale tax intTax = intTax * interSale

End Sub

Converting Fahrenheit to Celsius

This section develops an application that converts Fahrenheit to Celsius.
The formula used to convert Fahrenheit to Celsius is:

Celsius= (Fahrenheit-30)/2

Algorithms

Output: Celsius

Input: Fahrenheit

Conversion Formula

Algorithms

1. enter the temperature in Fahrenheit

2. enter the conversion formula

3. Convert Fahrenheit to Celsius by using this formula Celsius= (Fahrenheit=30)/2

4. Display Celsius

Program Interface

Code

Public Class Form1

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

' convert Fahrenheit to Celsius

' declare variables

Dim intFahrenheit As Integer

Dim intCelsius As Integer

'assign input to variables

Integer.TryParse (txtFahrenheit.Text, intFahrenheit)

Integer.TryParse (txtCelsius.Text, intCelsius)

' Convert

intCelsius = (Fahrenheit - 30) / 2

End Sub

Total bulk sale price using Number of Units and Price Per Unit

This application calculates the total bulk sales using number of units and price per units. All the sales prices are displayed in dollars.

Algorithm….....

     Open the full completed essay and source list


OR

     Order a one-of-a-kind custom essay on this topic


sample essay writing service

Cite This Resource:

Latest APA Format (6th edition)

Copy Reference
"Pseudocode And Visual Basic Programming" (2016, March 03) Retrieved May 8, 2025, from
https://www.aceyourpaper.com/essays/pseudocode-visual-basic-programming-2160978

Latest MLA Format (8th edition)

Copy Reference
"Pseudocode And Visual Basic Programming" 03 March 2016. Web.8 May. 2025. <
https://www.aceyourpaper.com/essays/pseudocode-visual-basic-programming-2160978>

Latest Chicago Format (16th edition)

Copy Reference
"Pseudocode And Visual Basic Programming", 03 March 2016, Accessed.8 May. 2025,
https://www.aceyourpaper.com/essays/pseudocode-visual-basic-programming-2160978