Week 3. Apply Discount
Problem:
-Finding the cost of a Parcel Where Price is x and Weight is y
Inputs:
-Weight
-PostageCost
Output:
-Cost To Post Parcel
Processing:
-Price x Weight (kg)
-IF PostageCost = >$100 then 10%discount
Algorithm:
Start PostageCost
Prompt user for PkgWeight
Get PkgWeight
Get Price
Verify PkgWeight, Price
PostageCost = PkgWeight * Price
IF Price = >$100
PostageCost - 10%
Display PostageCost
End
No comments:
Post a Comment