PSPP Lab Exp 1a-1f
PSPP Lab Exp 1a-1f
ELECTRICITY BILLING
ecord Notes
DATE:
AIM
To write an algorithm and flowchart to solve compute Electricity billing.
Ac circuit.
FLOWCHART
RESULT
Thus an algorithm and flowchart for electricity billing has been produced successfully.
EX NO:1B
AIM
ALGORITHM
Step1: Start
Step2: Update the list of items purchased on database
Step3.If shopping complete means calculate total
Step4: If shopping not completed purchase remaining items
Step4: Cash payment is done after calculating the total amount
Step5: Stop
FLOWCHART
Start
Purchase Items
No
Yes
Shopping
yes
complete
Yes
Calculate total
Cash payment
Stop
RESULT
Thus an algorithm and flowchart for retail shop billing has been produced successfully.
EX NO:1C
SINE SERIES
DATE:
AIM
ALGORITHM
Step 1:Start
Step 2: Read x,n
Step 3:Calculate x=x*3.14159/180
Step 4: t=x
Step 5 : Sum=x
Step 6: Check condition using While i<=n
Step 7: t=t*(-1)*x*x)/(2*i*2i+1))
Step 8 : sum=sum+t
Step 9 :i=i+1
Step 7: Print y,sum
Step 3: Stop
FLOWCHART
RESULT
Thus an algorithm and flowchart for sine series has been produced successfully.
EX NO:1D
AIM
ALGORITHM
Step 1:Start
Step 2:Heigt=Input "Height in Feet"
Step 3:Weight=Input "weight in Kilogram"
Step 4:x=(Weight/Height*Height)
Step 5:Print "Motor bike weight"-->x
Step 6:Stop
FLOWCHART
Start
yes
x=(Weight/Height*Height)
Stop
RESULT
Thus an algorithm and flowchart for weight of motor bike has been produced successfully.
EX NO:1E
AIM
ALGORITHM
Step1:start
Step2:Read the variables Diameter and length need to calculate the weight.
Step5:stop
FLOWCHART
Start
W=D^2*L/162
PRINT WEIGHT
STOP
RESULT
Thus an algorithm and flowchart for above program has been produced successfully.
EX NO:1F
AIM
ALGORITHM
Step1:start
Step2:Read the variables Diameter and length need to calculate the weight.
Step5:stop
FLOWCHART
Start
W=D^2*L/162
PRINT WEIGHT
STOP
RESULT
Thus an algorithm and flowchart for above program has been produced successfully.
AIM
To write an algorithm and flowchart to solve simple real life problems for electric current three phase
Ac circuit.
ALGORITHM
Step1: Start
Step2: Read the variables P,V and PF values
Step3: Assign the values to variables
Step4: Compute the electric current for three phase AC circuit using
Formula : I = P/(V * PF * 1.73)
Step5: print the electric current I Value
Step 6: Stop
FLOWCHART
start
I= P/(V * PF * 1.73)
Print I
end
RESULT Thus an algorithm and flowchart for above program has been produced successfully.