OrderCalculator

OrderCalculator - If OrderAmount > 100 Then...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
'Lab4Part1HeidiPeterson 'OrderCalculator Class Public Class OrderCalculator Public OrderAmount As Double Public SalesTaxPercent As Double Public Function GetTotalAfterDiscount() As Double Dim TotalAfterDiscount As Double Dim Discount As Double
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: If OrderAmount > 100 Then Discount = 0.1 Else Discount = 0 End If TotalAfterDiscount = (OrderAmount - OrderAmount * Discount) * (1 + SalesTaxPercent) S Return TotalAfterDiscount End Function End Class...
View Full Document

Ask a homework question - tutors are online