Basic Format of Flow Chart
Basic Format of Flow Chart
START
CAWL
INPUT
PROCESSING
STOP
Decision box
START
CAWL
INPUT
? YES
PROCESSING
NO
PROCESSING
STOP
START
CAWL
Ctr=1
? NO
Ctr <=max
STOP
YES
INPUT
? YES
PROCESSING
NO
PROCESSING
Ctr=ctr+1
Notes:
1) CAWL : clear all working location. It will remove all previous values and make
their intial value to zero.
2) Input box: in this box we write that variables which we take from users.
a. Dont include constant variables in the input box.
b. Variables are separated by coma(,).
3) Processing box: in this box we will write formula for the values expected by user
or required by user.
a. If we want to write two formula at the same time than use one the
following presentation.
SI= SI=
CI=
CI=
4) Print : in this box we will write only that variables which are asked in the
question.
5) Decision box: whenever in the question condition is given than use decision box
to solve that condition.
a. Decision box has only two out flows that is one is yes and other is no.
b. Decision box has only two decision parameters.
i. One variable and other constant.
ii. Both are variables
c. Following are different types of representation
NO NO
PROBLEMS ON FLOWCHARTS
DATA PROBLEMS
1. Input the length and breadth of a rectangle farm. Calculate and print its area.
2. Input the amount invested, the rate of interest and the period of investment in
years. Calculate and print the simple interest and compound interest on the
same.
3. Input 4 nos. print the sum of first three and average of last two nos.
5. Input the name and sales of a salesman. Calculate and print the name, sales and
commission where commission is 10% if sales are atleast ` 25,000 or more and
5% otherwise.
7. Input the name and salary of an employee calculate and print the name, salary
and bonus where bonus is 8.33% if the salary is atleast ` 1,00,000 or more and
6% otherwise.
9. Input the name and invoice amount for 500 customers. When the invoice
amount is atleast ` 1,00,000 or more, the customers are offered a discount of 5%
and 2% otherwise. Find and print the net amount receivable for each customer.
10. Input for 500 employees the Basic Salary and Dearness Allowance. Find and
print the Tax Deducted At Source (TDS) which is charged on the Gross Salary
which is Basic Salary + Dearness Allowance according to the following table:
Gross Salary TDS
` 50,000 or below NIL
Above ` 50,000 5% on excess over 50,000
11. Input two numbers from the keyboard Swap/Exchange their values. (By using
2 and 3 variables).
12. Input for 500 Salesmen, their names and sales figures.
Draw a flowchart to calculate the commission based on the following set of
rules:
1. If the sales is less than ` 500 then there is no commission.
2. If the sales are ` 500 or above but less than ` 5,000 then the commission is
computed @ 10% of the sales.
3. If the sales are ` 5,000 or above, the commission is ` 500 and @ 12% of the
sales above ` 5,000.
Print the name, sales and commission.
13. Input for 500 employees their name, and number of days for which they remain
absent. The employees are charged a fine according to the policy of the
organisation stated as under:
1. If the employee is not absent at all, he does not have to pay any fine.
2. If the employee is absent for maximum 3 days, he has to pay fine of ` 20.
3. If the employee is absent for maximum 8 days, he has to pay a fine of ` 100.
4. In any other case, the fine is ` 200.
Find and print the name and fine payable by each employee.
14. Input the name and basic salary for 100 employees. Each employee contributes
10% of basic salary towards Provident fund. Find and print the name, P.F.
contribution made by each employee. Also print the total contribution of all
employees.
. A college has 600 students whose results for T.Y.B.Com. have been declared and
all have passed. Draw a flowchart to input average marks of the students and
determine the percentage of students in each category.
1. Pass Class (Avg. < 45%)
2. IInd Class (45% < = Avg. < 60%)
3. Ist Class (60% < = Avg. < 75%)
4. Distinction (Avg. = > 75%)
15. A firm has 200 employees. Input salaries for 200 employees and find number of
employees in each categories. Their salaries are divided in 4 categories as
under:
1. Less than ` 2,000
2. ` 2,000 to ` 4,000
3. ` 4,001 to ` 5,000
4. Above ` 5,000
16. Draw a flowchart to compute and print income tax, surcharge, education cess
and total income tax on each of income of 100 people where income is the input.
Slab rates are as follows:
*******
Decision Table
Question 1
A bank uses the following rules to classify new accounts.
If depositor's age is 21 or above and if the deposit is Rs 100 or more, classify the
account type
as A.
If the depositor is under 21 and the deposit is Rs 100 or more, classify it as type B.
If the depositor is 21 or over and deposit is below Rs 100 classify it as C. If the depositor
is
under 21 and deposit is below Rs 100 do-not open account.
Question 2
A shop owner allows credit facility to his customers if they satisfy any one of the
following
conditions :
1. Holding the present job for more than 3 years and residing in the same place for more
than 5 years.
2. Monthly Salary exceeds Rs. 1500 and holding the present job for more than 3 years.
3. Residing in the same place for more than 5 years and monthly salary exceeds
Rs. 1500.
The facility is rejected for all other customers.