CalculateShipping Method (fromZip, toZip, weight, size)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 CalculateShipping Method (fromZip, toZip, weight, size)
Patterns-In-Action! ApplicationCartShippingStrategyUPSCalculateShipping(String, String, Double, Double)
Calculates shipping costs given zip codes and product dimensions.
Declaration Syntax
C# Visual Basic
public double CalculateShipping(
	string fromZip,
	string toZip,
	double weight,
	double size
)
Public Function CalculateShipping ( _
	fromZip As String, _
	toZip As String, _
	weight As Double, _
	size As Double _
) As Double
Parameters
fromZip (String)
Zip code of warehouse.
toZip (String)
Zip code of customer.
weight (Double)
Product weight.
size (Double)
Product size.
Return Value
Shipping costs.

Assembly: Cart (Module: Cart) Version: 1.0.0.0 (1.0.0.0)