Tuesday, May 4, 2010

Learning & Assessment Activity 3.1

1. Create a pseudocode algorithm for the following problem (modified from activity 1.1)

You need to know the cost of sending a parcel to someone.the price of sending the item will depend upon its weight. The postal service has a standard charge per kilo of item weight.If the postage charge is greater then $100.00,a %10 discount is applied to the amount.

2. Publish the algorithm to your assessment document.

Calculate the cost of the parcel
Prompt the user for the parcel weight
Get the parcel weight
Validate parcel weight
Prompt the user for the standard charge
Get the standard charge
Validate standard charge
Parcel weight x Standard charge
If Cost Of  Parcel >$100.00 then
Display Cost Of Parcel + "You recieve a %10 discount"
Else
Display the cost of the parcel
End If
Close Display

No comments:

Post a Comment