Draw flowchart and write an algorithm for the following using while loop:
A club is registering 40 boys and girls. According to their age, club classifies them as under:
For the age group between 5 to 10 print category A
For the age group 11 to 25 - print category B
For the age group 26 to 35 - print category C
For any other age, print "not qualified"
Answers
Answer:
ALGORITHM AND FLOW CHART | Lecture 1 2013
Amir yasseen Mahdi |
2
1.1INTRODUCTION
Intelligence is one of the key characteristics which differentiate a human
being from other living creatures on the earth. Basic intelligence covers day
to day problem solving and making strategies to handle different situations
which keep arising in day to day life. One person goes Bank to withdraw
money. After knowing the balance in his account, he/she decides to with
draw the entire amount from his account but he/she has to leave minimum
balance in his account. Here deciding about how much amount he/she may
with draw from the account is one of the examples of the basic intelligence.
During the process of solving any problem, one tries to find the necessary
steps to be taken in a sequence. In this Unit you will develop your
understanding about problem solving and approaches.
1.2 PROBLEM SOLVING
Can you think of a day in your life which goes without problem solving?
Answer to this question is of course, No. In our life we are bound to solve
problems. In our day to day activity such as purchasing something from a
general store and making payments, depositing fee in school, or withdrawing
money from bank account. All these activities involve some kind of problem
solving. It can be said that whatever activity a human being or machine do
for achieving a specified objective comes under problem solving. To make it
clearer, let us see some other examples.
Example1: If you are watching a news channel on your TV and you want to
change it to a sports channel, you need to do something i.e. move to that
channel by pressing that channel number on your remote. This is a kind of
problem solving.