Algorithm for finding mean of 3 numbers
Step1: start
Step2: read num1,num2,num3
Step3:calculate
Mean=(num1+num2+num3)/3;
Step4:display mean
Step5:stop
Develop an algorithm and a flowchart for swapping of two numbers
Step1: start
Step2: read a,b
Step3: a=a+b
B=a-b
A=a-b
temp = a
a=b
b = temp
Design and develop an algorithm and a flowchart to find the area of
Algorithm for calculating area of a triangle using herons formula
Step1: start
Step2: read a,b,c
Step3: calculate s=(a+b+c)/2
Step4: calculate area=sqrt(s*(s-a)*(s-b)*(s-c))
Step5: display area
Step6: stop
There is a company hp ,employ name is Ravindra in his offer letter the company has given
Basic pay is 60,000
Da is 20% of the basic pay
Hra is 15% of basic pay
Medical insurance is 5%
Pf is 10%
Algorithm for calculating employee salary
Step1: start
Step2: read bpay
Step3: calculate da=0.2*bpay
Step4: calculate hra=0.15*bpay
Step5: gross=bpay+hra+da
Step6: pf=0.1*bpay
Step7: med=0.05*bpay
Step8=calculate net = gross-(med+pf)
Step9: display net,gross
Step10: stop…….
Algorithm for find whether given number is positive or negative::
Step1: start
Step2: read the no. as sum
Step3: if no.>0
Print no. is positive
Otherwise, no. is -ve
Step4: end
Design and develop an algorithm to verify whether the given no. is -ve , +ve or equals to zero
Algorithm for finding biggest of two numbers
Step1: start
Step2: read num1 and num2
Step3: if num1>num2 step3: if num==num2
Print num1 is biggest print num1 is equals to num2
else else if num1 > num2
print num2 is biggest print num1 is the biggest
step4: end else num2 is biggest
algorithm for finding biggest of three no.
step1: start
step2: read num1 , num2 , num3
step3: if num1 == num2 and num2 == num3
print three no. are equal
else if num1> num2 and num1 > num3
print num1 is biggest among three
else if num2 > num3
print num2 is biggest
else num3 is biggest
step4: stop
design and develop algorithm to find smallest among three no.
design and develop an algorithm to verify whether a person is eligible for voting or not
design and develop an algorithm and flowchart for finding whether the given no. is even or odd
units Price per unit Amount
0-100 4 Units*4
101-150 6
151-250 8
251-400 10
401-1000 15
Constraints :
If the no. of units more than 400 add tariff of 300 rs.
Step1: start
Step2: read units
Step3:if units>=0 and units<=100
Amount=units*4
Print amount
Else if units>=101 and units<=150
Amount=units*6
Print amount
Else if units>=151 and units<250
Amount=units*8
Print amount
Else if units>=251 and units<=400
Amount=units*10
Print amount
Else
Amount=(15*units)+300
Print amount
Step 4:stop
Marks grade
90-100 S
80-89 A
70-79 B
60-69 C
50-59 D
Others FAILED
Algorithm for cal. Of Rapido bike billing
No. of kms Price for each km Waiting time Charge
0-5 55 0-5 0
6-10+ 75 6-20 40
10-20 100 20-30 90
Cal. bill amount for the rapido
Step1: start
Step2: read kms,wt
Step3: if kms >=0 and kms <=5
Price=kms*55
Else if kms >=6 and kms<=10
Price=kms*75
Else
Price=kms*75
Step4: if wt>=0 and wt<=5
Price1=0
Else if wt>=6 and wt<=20
Price1=40
Else if wt>=21 and wt<=30
Price1=90
Step5: amount=price+price1
Step6: print amount
Step7: stop
Design and develop an algorithm and flowchart to verify entered character is vowel or consonant
Algorithm for finding given character is vowel or consonant
Step1: start
Step2: read the character as Ch
Step3: if Ch==”a”||Ch==”e”||Ch==”I”||Ch==”o”||Ch==”u”
Print entered character is a vowel
Else
Print entered character is consonant
Step4: stop
Mr surya went for a restaurant asked for a meal. server req,, for veg meals,
basic cost is 150rs and we are offering 5% disc and 7% gst .for non veg meals, basic price is 220rs and we
are offering 5% disc and 6% gst
surya decided to have veg meals help ms surya to find out total meals cost if surya chosen non veg meals
also help him total meal cost
algorithm for meal cost calc.
step1: start
step2: read meal type
step3: type==”veg”
bc=150
dis=bc*0.05
cost=bc-dis