INPUT           PROCESSING                        OUTPUT
Activit     1. Number       1. Read Number of Children        1. Amount of       2.
y1             of              and Total amount of money         money spent
               children     2. Calculate Money per Child         on each child
                               (money_per_child =
            2. Total
                               total_money /
               amount
                               num_children)
               of
                            3. Print amount of money per
               money
                               each child
Activit     1. Score 1      1. Read score 1, 2 and 3          4. Average for     5.
y2                          2. Calculate Average (average        each student
            2. Score 2
                               = (score1 + score2 +
                               score3) / 3))
          3. Score 3     3. Print Average
Activit   1. Name of        1. Read Name of Item,               4. Name of      6.
y3           Item              Cost and discount %                 item
                            2. Calculate Discounted
          2. Cost of                                            5. Discounted
                               Price (discounted_price
             Item                                                  Price
                               = cost - (cost *
          3. Discount          discount_percent / 100))
             percent        3. Print discounted Price
             on item
Input                   processing                 Output
Number of children      Read number of             Money per child
                        children
                        total money available
                        (total money/ number
                        of children)
Total money available   Calculate money per
                        child
                        Print money per child
Input                   Processing                 Output
Score 1                 Read score 1, 2 and 3      The average score
Score 2                 Calculate the average
                        score - (Score 1 + score
                        2 + score 3) /3
Score 3                 Print average score
Input                Processing                Output
Name of item         Read name of item,        The name of item and
                     cost of item and          discounted price
                     discount % of item
Cost of item         Calculate the
                     discounted price - Cost
                     - (Discount % x cost)
Discount % of item   Print the name and
                     discounted price
Input                Processing                Output
Marks earned         Read marks earned and
                     total marks
Total marks          Calculate percentage –    Percentage of marks
                     (marks earned/total
                     marks)
                     If percentage <=50,       “Pass” or “Fail”
                     print “Pass”              message
                     If percentage <50, print Additional marks
                     “Fail” and additional    needed
                     marks needed to
                     achieve 50% threshold.
Input                Processing                Output
Ages of 25 people    Read the ages of 25       Youngest age
                        people
                        Print the youngest age
Input                   Processing                 Output
Hours worked each day   Read number of hours       Total Earnings
(7)                     worked each day
Charge - $10 per hour   Read the charge per
                        hour
                        Calculate earnings after
                        7 days – (number of
                        hours x $10)
                        Print Total earnings
Mangoes
This algorithm will calculate the final cost of a set of mangoes
Variables
Quantity of integer
   1. Start
   2. Input Num_of_mangoes
Start
  Input mark_earned, total_marks
  percentage = (mark_earned / total_marks) * 100
  If percentage >= 50 Then
        Display "Pass"
  Else
        marks_needed = (0.5 * total_marks) - mark_earned
        Display "Fail"
        Display "You need", marks_needed, "more marks to pass."
  End If
End
Start
  youngest_age = 100 // Assuming no one is older than 100
  For i = 1 to 25 Do
        Input age
        If age < youngest_age Then
          youngest_age = age
        End If
  End For
  Display "The youngest age is", youngest_age
End
Start
  total_earnings = 0
  For day = 1 to 7 Do
        Input hours_worked
        daily_earnings = hours_worked * 10
        total_earnings = total_earnings + daily_earnings
  End For
  Display "Amanda's total earnings for the week are $", total_earnings
End