OrderCalculator - If OrderAmount> 100 Then Discount = 0.1...

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

This note was uploaded on 07/27/2009 for the course BIS 311 taught by Professor Marshburn during the Fall '08 term at DeVry Cincinnati.

Ask a homework question - tutors are online