Pic Lab
Pic Lab
A
ELECTRICITY BILLING
Date:
Aim:
To draw a Flowchart for calculating Electricity Bill.
Algorithm:
1. Read the number units consumed as units
2. For 0 to 100 units the per unit is ₹ 0/-
3. For 0 to 200 units, for the first 100 unit the per unit cost is zero and the next
100 units, the consumer shall pay ₹ 1.5 per unit.
4. For 0 to 500 units, the consumer shall pay ₹ 0 for the first 100 units, for the
next 100 units the consumer shall pay ₹ 2 per unit, for the next 300 units the
unit cost is ₹3.00/-
5. For above 500 units, the consumer shall pay ₹ 0 for the first 100 units, for
the next 100 units the consumer shall pay ₹ 3.50 per unit, for the next 300
units the unit cost is ₹4.60/- and for the remaining units the unit cost is
₹6.60/-
6. Calculate amount as per step 2 to step 6
7. Display the total amount as amount
Flowchart:
Result:
Flowchart for Electricity Bill Calculation has been drawn and verified.
Ex. No.: 1.B
ARITHMATIC OPEARTION
Date:
Aim:
To draw a Flowchart for finding addition of two numbers
Algorithm:
1. start the algorithm
2. Read the inputs number1,number2
3. Calculate sum as addition of number1 and number2
4. Display the result sum
5. End the algorithm
Flow chart
Result:
Flowchart for finding addition of two numbers has been drawn and verified.
Ex. No.: 1.C
RETAIL SHOP BILLING
Date:
Aim:
To draw a Flowchart for Retail Shop Billing.
Algorithm:
1. Start the algorithm
2. Assign tax as 0.18
3. Display the available items
4. Read rate of item , quantity purchased
5. Calculate cost as sum of rate of item multiplying with quantity
6.Calculatebill amount as sum of cost with (cost * tax)
7. Display bill amount
8. Stop the algorithm
Flowchart
Start
Tax=0.28
Display
Items,Rate_of_ite
Read Quantity
Stop
Result:
Flowchart for Retail shop Billing has been drawn and verified.
Ex. No.: 1.D
WEIGHT OF A STEEL BAR
Date:
Aim:
To draw a Flowchart for calculating the weight of a Steel Bar.
Algorithm:
1. start the algorithm
2. Read the input as diameter D of the steel bar
3.Claculate weight w as (D*D) divided by 162
4.Print the result w
5.stop the algorithm
Flowchart:
Result:
Flowchart for calculating weight of a steel bar has been drawn and verified.
Ex. No.: 1.E
SINE SERIES
Date:
Aim:
To draw a Flowchart for evaluating sine series.
Flowchart:
Start
Read x, n
x = x * 3.14/ 180
t=x
sum = x
t =(t*(-1)*x*x)/(2*i*(2*i+1));
sum=sum+t;
Stop
Result:
Flowchart for Sine series has been drawn and verified.
Ex. No.: 1.F
COMPUTE ELECTRICAL CURRENT IN THREE
PHASE AC CIRCUIT
Date:
Aim:
Result:
Flowchart for calculating the electrical current in three phase AC circuit has
been drawn and verified.