Professional Documents
Culture Documents
Module 1
Module 1
MODULE I
3 Marks
1. Differentiate between system software and application software
4. What is the purpose of flow charts in problem solving? Draw a flow chart
to find the largest of three numbers.
Flowchart is a diagrammatic representation of an algorithm. It can
help to organize big-picture thinking and provide a guide when it comes time
to code. More specifically, flowcharts can: Demonstrate the way code is
organized. Visualize the execution of code within a program.
FLOW CHART
11. With the help of a neat diagram explain the functional units of a
computer
Flowchart
13. Draw the flowchart of bubble sort. Trace the steps for the input
[5,3,1,7,9].
Step 4. i=0
Step 5. if(i<n) then goto step 6 else goto step 8
Step 6. Read the number A[i]
Step 7. i=i+1, then goto step 5
Step 8. i=0
Step 9. if(i<n) then goto step 10 else goto step 11
Step 10. if(A[i]==num) then print number is present at location i+1and goto
step 12, else i=i+1 and goto step 9
Step 11. If i==n print the num is present
Step 12- stop
Flowchart
Algorithm
Step 1- start
Step 2 – read n
Step 3- sum=0
Step 4- if n>0 go to step 5,else go to step 6
Step 5- temp=n%10, sum=sum+temp, n=n/10 and goto step 4
Step 6- print sum
Step 7 - stop