fork download
  1. Module VBModule
  2.  
  3. Sub Main()
  4. Dim clientName As String="NO VALUE"
  5. Dim feetUTP As Double=0
  6. Dim subTotal As Double=0
  7. Dim taxCost As Double=0
  8. Dim totalCost As Double=0
  9. Call inputData(clientName, feetUTP)
  10. Call calcCost(feetUTP, subTotal, taxCost, totalCost)
  11. Call finalBill(clientName, totalCost)
  12. Console.Write("Press enter to continue...")
  13. Console.ReadLine()
  14. End Sub
  15.  
  16. Sub inputData(ByRef clientName As String, ByRef feetUTP As Double)
  17. Console.Write("Enter the clients name:")
  18. clientName=Console.ReadLine()
  19. Console.Write("Enter the number of feet of UTP installed:")
  20. feetUTP=Console.ReadLine()
  21. End Sub
  22.  
  23. Sub calcCost(ByVal feetUTP, ByRef subTotal, ByRef taxCost, ByRef totalCost)
  24. subTotal=feetUTP*$0.21
  25. taxCost=subTotal*.06%
  26. totalCost=taxCost+subtotal
  27. End Sub
  28.  
  29. Sub finalBill(ByVal clientName as string, ByVal totalCost as double)
  30. Console.WriteLine()
  31. inputData(clientName, feetUTP)
  32. calcCosts(feetUTP, subTotal, taxCost, totalCost)
  33. finalBill(clientName, totalCost)
  34. End Sub
  35.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/9Kv2Om/prog.vb (24,22) : Error VBNC30037: Symbol is not valid.
/home/9Kv2Om/prog.vb (25,26) : Error VBNC90002: 'IntegerTypeCharacter' type character is not valid here.
/home/9Kv2Om/prog.vb (25,26) : Error VBNC90005: Invalid literal.
/home/9Kv2Om/prog.vb (35,1) : Error VBNC90019: Expected 'End'.
Error recovery not implemented yet.
There were 4 errors and 0 warnings.
Compilation took 00:00:00.6460280
stdout
Standard output is empty