Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1.     Private Function CalcUnallowed(ByVal ParkingFee As Double, ByVal TaxiFee As Double, ByVal LodgingCharges As Double, ByVal NumOfDays As Integer)
  2.         Dim totalExpensesNotAllowed As Double = 0
  3.         If (ParkingFee > (MAX_PARKINGFEE * NumOfDays)) Then
  4.             totalExpensesNotAllowed += ParkingFee - (MAX_PARKINGFEE * NumOfDays)
  5.         End If
  6.         If (TaxiFee > MAX_TAXICHARGE) Then
  7.             totalExpensesNotAllowed += TaxiFee - MAX_TAXICHARGE
  8.         End If
  9.         If (LodgingCharges > MAX_LODGINGCHARGE) Then
  10.             totalExpensesNotAllowed += LodgingCharges - MAX_LODGINGCHARGE
  11.         End If
  12.         MsgBox(totalExpensesNotAllowed)
  13.         Return totalExpensesNotAllowed
  14.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement