Computer Science, asked by arpityadav16, 4 months ago

Draw a flowchart to calculate bill as per Uttarakhand State Electricity Board (USEB) generated on the following basis:
If units are between 0 to 100- 3.80 /unit
If units are between 101 to 200- 3.95 /unit
If units are between 201 to 400- 4.90 /unit
If units are above 400- 9.15/unit​

Answers

Answered by TylerSanders1507
0

Answer:

Approach: The idea is to identify the charge bar in which it falls and then calculate the bill according to the charges mentioned above. Below is the illustration of the steps:

Check units consumed is less than equal to the 100, If yes then the total electricity bill will be:

\text{Total Electricity Bill} = (\text{units} * 10)

Else if, check that units consumed is less than equal to the 200, if yes then total electricity bill will be:

\text{Total Electricity Bill} = (100*10) + (\text{units}-100) * 15

Else if, check that units consumed is less than equal to the 300, if yes then total electricity bill will be:

\text{Total Electricity Bill} = (100*10) + (100*15) + (\text{units}-200) * 20

Else if, check that units consumed greater than 300, if yes then total electricity bill will be:

\text{Total Electricity Bill} = (100*10) + (100*15) + (100*20) + (\text{units}-300) * 25

Below is the implementation of the above approach:

Similar questions
Science, 10 months ago