# programming(visual basic)

debugging exercise:

Private Sub btnItemNumber_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnItemNumber.Click
Dim decCost As Decimal
Dim intCount As Decimal
decCost = Convert.ToDecimal(txtCost.Text)
Inventory(decCost, intCount)
End Sub
Private Sub Inventory(ByVal cost, ByVal count)
count +=3
cost *=1.3
End Sub

1. 👍 0
2. 👎 0
3. 👁 46
asked by Sean

## Similar Questions

1. ### Visual Basic

debugging exercise: Private Sub btnItemNumber_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnItemNumber.Click Dim decCost As Decimal Dim intCount As Decimal decCost = Convert.ToDecimal(txtCost.Text)

asked by Kevin on December 3, 2014
2. ### Programming

I’m using VB 2008. I need to write a simple program that calculates total sales of purchases. The program should accept item costs as input calculate the tax on each item (8%) display the item cost, total cost, and total after

asked by Brenda on April 17, 2011
3. ### Visual Basic

Alright, so I'm trying to code a program to where I can plug in two numbers and get a commission cost out of them. I'm having a hard time setting up the code, and I'm really looking for some guidance. I have this as the code so

asked by Reese on February 25, 2011
4. ### Computer Science

I need to write a program to solve for the following: Suppose that the file USPRES.txt contains the names fo the frist 43 United States presidents and the file USSENATE.TXT contains the names of all former and present US Senators.

asked by Wally on March 4, 2011
5. ### programming

write a program to calculate the amount of a server's tip given the amount of the bill and the percentage tip ovtained via input dialog boxes. The output should be a complete sentence that reiterates the inputs and gives the

asked by Stacy on October 22, 2010
6. ### Visual Basic

what does IntTemp and IntRem mean? and whats wrong with my code, i don't know whats wrong with it... Code below: Dim intNum As Integer 'the numderator is read as a whole number. Dim intDenom As Integer 'the denominator is read as

asked by Jessica on January 31, 2013
7. ### Visual Basics 2008

This is a from chapter 3 #82. the problem is: Write a program to calculate the amount of a server's tip given the amount of the bill and the percentage tip obtained via imput dialog boxes. The output should be a complete sentence

asked by Lee on October 22, 2010
8. ### visual basic

here is my source code for my program im trying to convert 10 units from furlong to meters the answer is supposed to be 2011.68 meters i keep getting 2000. I know if i cant get this right the rest of the conversion will give the

asked by cl on May 8, 2009
9. ### Programming

Write a program that allows the user to display a budget as a pie chart. After the user enters numbers into the four text boxes a presses the button, the pie chart should be displayed. When I push the button for my code it does

asked by Stacy on November 28, 2010
10. ### Visual Basic

how to use formula b=p (1+r)^n, to calculate annual interests for a savings account in visual basic project This is my code so far>>>>>>>>>>>>>> Option Explicit On Option Strict On Option Infer Off Public Class MainForm Private

asked by paul on March 27, 2016

More Similar Questions