PSEUDO task1a

 

BEGIN

            Enter first length

            Enter first width

            Multiple length by width to find the area of the first rectangle

            Output the area of the first rectangle

 

 

            Enter 2nd length

            Enter 2nd width

            Multiple length by width to find the area of the 2nd rectangle

            Output the area of the 2nd rectangle

 

            Enter 3rd length

            Enter 3rd width

            Multiple length by width to find the area of the 3rd rectangle

            Output the area of the 3rd rectangle

                        ..

                        ..

 

            Add all the areas

            Output the Total Area

END

 

 


PSEUDO task1b

 

BEGIN

            Set a counter to 0

            Set Total Area to 0

            WHILE the counter is less than 7 DO

                        BEGIN

                                    Enter length

                                    Enter width

                                    Multiply length by width to give the area

                                    Output the area

                                    Add area to Total Area

                                    Add one to the counter

                        END {end of while do}

            END {end of procedure}

 

 

 

 

 

 


                                                            

 

 

 

PSEUDO task2a

 

BEGIN

            Enter price of first article

            Enter quantity

            Multiply price by quantity to find cost

            Output cost of first order

 

            Enter price of second article

            Enter quantity

            Multiply price by quantity to find cost

            Output cost of second order

 

            Enter price of third article

            Enter quantity

            Multiply price by quantity to find cost

            Output cost of third order

 

            Enter price of fourth article

            Enter quantity

            Multiply price by quantity to find cost

            Output cost of fourth order

 

            Add the costs of the four orders to find the Grand Total

 

            IF the Grand Total is greater than 5000 THEN

                        BEGIN

                                    Work out the 5% discount

                                    Subtract discount from Grand Total to give a new Grand Total

                                    Output Grand Total

                        END

            ELSE

                        BEGIN

                                    Output message – No discount applied

                                    Output Grand Total

                        END {end or if then else}

            END {end of procedure}

 

 

 

 


                                               

 

 

 

 

 

 

 

PSEDUO Task3

                                               

BEGIN

            Set Grand Total to 0

 

WHILE there are more orders DO

            BEGIN

                        Enter price of article

                        Enter quantity

                        Multiply price by quantity to find cost

                        Output cost of order

                        Add cost to the Grand Total

            END {end of while do}

 

IF the Grand Total is greater than 500 THEN

            BEGIN

                        Work out the 5% discount

                        Subtract discount from Grand Total to give a new Grand Total

                        Output Grand Total

            END

ELSE

            BEGIN

                        Output message – No discount applied

                        Output Grand Total

            END {end of if then else}

END {end of procedure}

Hosted by www.Geocities.ws

1