Algorithm for finding mean of 3 numbers
Algorithm for finding mean of 3 numbers
Step1: start
Step3:calculate
Mean=(num1+num2+num3)/3;
Step4:display mean
Step5:stop
Step1: start
Step3: a=a+b
B=a-b
A=a-b
temp = a
a=b
b = temp
Step1: start
Step6: stop
There is a company hp ,employ name is Ravindra in his offer letter the company has given
Medical insurance is 5%
Pf is 10%
Step1: start
Step5: gross=bpay+hra+da
Step6: pf=0.1*bpay
Step7: med=0.05*bpay
Step10: stop…….
Step1: start
Step3: if no.>0
Step4: end
Design and develop an algorithm to verify whether the given no. is -ve , +ve or equals to zero
step1: start
step4: stop
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
Amount=units*4
Print amount
Amount=units*6
Print amount
Amount=units*8
Print amount
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
Step1: start
Price=kms*55
Price=kms*75
Else
Price=kms*75
Price1=0
Price1=90
Step5: amount=price+price1
Step7: stop
Design and develop an algorithm and flowchart to verify entered character is vowel or consonant
Step1: start
Step3: if Ch==”a”||Ch==”e”||Ch==”I”||Ch==”o”||Ch==”u”
Else
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
step3: type==”veg”
bc=150
dis=bc*0.05
cost=bc-dis