View Single Post
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: .Net Battler Needing help Desperately lol!

 
0
  #2
Apr 8th, 2008
  1. Dim vPrice As Decimal
  2. Dim vQty As Integer
  3. Dim vTotal As Decimal
  4. Dim vDiscount As Decimal
  5. Dim vFinal As Decimal
  6.  
  7. vPrice = Val(InputBox("Enter a price"))
  8. vQty = Val(InputBox("Enter a qty"))
  9. vTotal = Val(vPrice * vQty)
  10.  
  11. If vTotal < 20 Then
  12. vDiscount = vTotal
  13. vFinal = vDiscount
  14. ElseIf vTotal >= 20 And vTotal < 49.99 Then
  15. vDiscount = Val(vTotal) * 0.1
  16. vFinal = (Val(vTotal) - Val(vDiscount))
  17. ElseIf vTotal > 50 Then
  18. vDiscount = Val(vTotal) * 0.2
  19. vFinal = (Val(vTotal) - Val(vDiscount))
  20. End If
  21. MessageBox.Show("Final Price is " & vFinal)
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote