Write a python program to calculate and print the electric bill for Ethiopian Electricity Corporation. (consumer name meter number(mno),last month reading(Imr)and current month reading(cmr) of 50 customers and calculate the net bill amounts as follows: Number of unit(Nou)=cmr-lmr If Nou200 then bill =Nou*2 tax=bill*0.15 netbill=bill+tax Print all the details in the bill for all customers​

Answers

Answer 1

The electric bill program illustrates the use of loops (i.e. iteration)

Loops are used to execute repetitive operations

The electric bill program in Python where comments are used to explain each line is as follows:

#This iteration shows that the process is repeated for 50 consumers

for i in range(50):

   #This gets input for the consumer name meter number

   mno = input("Consumer name meter number: ")

   #This gets input for last month reading

   lmr = int(input("Last month reading: "))

   #This gets input for current month reading

   cmr = int(input("Current month reading: "))

   #This calculates the number of units

   Nou = cmr - lmr

   #This calculates the bills

   bill = Nou*2

   #This calculates the tax

   tax = bill*0.15

   #This calculates the netbills

   netbill = bill+tax

   #This next four lines print the electric bills

   print("Number of units:",Nou)

   print("Bills:",bill)

   print("Tax:",tax)

   print("Netbill:",netbill)

Read more about loops at:

https://brainly.com/question/19344465


Related Questions

Explain the difference between the = symbol in Java and in mathematics.

Answers

Answer:

In maths the '=' sign tells us that the two integers or variables on either side are the same, wheras in Java the '=' sign means that you are assigning the variable on the left hand side it's value which will be on the right

What is the purpose behind the Three Phase Commit? It improves upon the two phased commit by requiring that locks be acquired at the start of a transaction. It allows for coordination even in the event of unreliable network connections. It ensures that no shared locks are help by other connections in the event of a write operation. None of the above.

Answers

The answer is a) It improves upon the two-phased commit by requiring that locks be acquired at the start of a transaction.

Reason: The 3PC is an extension or you can say developed from 2PC that avoids blocking of an operation. It just ensures that first n sites have intended to commit a transaction that means it acquires commits or locks before the start of any transaction to avoid any blocking.

Option b) is wrong as it does not allow coordination, it just let all the other sites do their transaction if any other site is blocked, so no coordination is there between sites that they will wait till their coordinator is corrected.

Option c) is wrong as lock operations are shared between other connections as when their coordinator fails, the new coordinator agrees to the old coordinator that they had shared locks before and they can start their transaction.

Option d) is wrong as option a) is correct.

If you like the answer, please upvote.

what are the parts system unit​

Answers

Explanation:

there are 6 main system unit components:

motherboard

processor

RAM

hard drive

video card

power supply.

explain the different types of programming languages​

Answers

Answer:

Language types. Machine and assembly languages. Algorithmic languages. FORTRAN. ALGOL. C. Business-oriented languages. COBOL. SQL. Education-oriented languages. BASIC. Pascal. Logo. Hypertalk. Object-oriented languages. C++ C# Ada. Java. Visual Basic. Python. ...

Elements of programming. Control structures. Data structures.

Explanation:

Pls Mark Brainliest

Write a program that allows the user to enter three separate strings: a city name, a state name, and a ZIP code.

Answers

Answer:

In Python:

city = input("Enter a city: ")

state = input("Enter a state: ")

zip_code = input("Enter a zip code: ")

a computer memory that acts as the main storage available to user for programs and data

Answers

Answer:

Primary storage. Primary storage (also known as main memory, internal memory, or prime memory), often referred to simply as memory, is the only one directly accessible to the CPU.

What is one problem caused by spending too much time studying at your computer? A. It increases stress and negatively affects your sleep. B. It causes you to forget other projects that need work. C. It makes it more difficult to organize your time. D. It is not an effective use of your study time.

Answers

Answer:

A - It increases stress and negatively affects your sleep.

Hope that helps. x

Answer:

The answer is A

Explanation:

Explain in detail what it means to synchronize computers and mobile devices and include at least two strategies for keeping your files in sync in your answers

Answers

Answer:

Explanation:

To synchronize computers and mobile devices means to use a cloud service that constantly checks to see if local files are up-to-date with the files in the cloud. These services update the cloud files with the local files if they are overwritten for maximum convenience.

Two strategies for keeping files in sync are using Dropbox. Another way is using iCloud if one has Mac/iOS devices.

1. All the computer has a power button.​

Answers

Answer:

The power button is a round or square button that powers an electronic device on and off. Nearly all electronic devices have power buttons or power switches. Typically, the device powers on when the button is pressed and powers off when it's pressed again.

Explanation:

1. True. All computers have some way of turning on or off. whether that be a button or a switch.

Distinguish between principles, guidelines and standards, using examples of each to illustrate​

Answers

Explanation:

principles is what governs a place

guidelines is what you read to guide you

standards is what build up in your self

Answer:

A principle is a basic truth to live by, such as “All human beings are equal in the eyes of God.” A guideline is a general rule or piece of advice such as “don't burn your bridges.” A standard is a rule to be upheld such as the Ten

use JAVA

Create a HighestGrade application that prompts the user for five grades between 0 and 100 points and stores

the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then

displays the grade along with an appropriate message.

Output:

Enter a grade (between 0 and 100): 87

Enter a grade (between 0 and 100): 65

Enter a grade (between 0 and 100): 98

Enter a grade (between 0 and 100): 89

Enter a grade (between 0 and 100): 55

The highest grade is: 98

Answers

Answer:

import java.util.*;

public class HighestGrade

{

       public static void main(String args[])

       {

                Scanner sc = new Scanner(System.in);

                 int n = 5;      

                ArrayList<Integer> grades = new ArrayList<Integer>(n);

               for (int i = 1; i <= n; i++)

                {

                       System.out.print("Enter a grade (between 0 and 100): ");

                       int num = sc.nextInt();

                       grades.add(num);

                }

                int max = grades.get(0);

                for (int i = 1; i < n; i++) {

                       if (grades.get(i) > max) {

                             max = grades.get(i);

                       }

                }

               System.out.print("The highest grade is: "+max);

       }

}

Explanation:

The class HighestGrade application rompts the user for five grades between 0 and 100 points and stores  the grades in an ArrayList. HighestGrade then traverses the grades to determine the highest grade and then displays the grade along with an appropriate message.

Q) Look at the code sequence and select the correct output

str="Python using Colab"
for i in str:
if(i.isupper()==True):
print(i.lower(), end="")
if(i.islower()==True):
print(i.lower(), end="")

(a) pYTHONUSINGcOLAB
(b) PYTHONUSINGCOLAB
(c) Error
(d) pythonusingcolab​

Answers

Answer:

D.

Explanation:

you cannot create a folder within a folder true or false ​

Answers

HI THERE !!

the answer is false :))

correct me if I'm wrong

Answer:

true

Explanation:

Question 2
What is the output of the following python code:
y = 130
x = 30.15
print (y, x)

Answers

Answer:

>>> 130 30.15

Questions Description Explain how you will identify and use texts according to the function you wish for it to serve in the particular industry​

Answers

The texts have different purposes that can be identified with the following tips:

Identify the main ideas. Identify the author's purpose.

What is a text?

A text is a term to refer to the set of phrases and words ordered coherently to be interpreted and to transmit the ideas of an author (emitter or speaker).

Texts can have a variety of topics depending on the author's intention. For example:

Scientific texts: They are the texts that have the purpose of sharing scientific information with exact data and results of experiments or others. Literary texts: They are the best known texts that stand out for including a diversity of topics, they are characterized by telling an in-depth story. News texts: They are the texts that expose all the details of a news story and have the purpose of objectively reporting.

According to the above, to identify a text it is necessary to read it and identify the main ideas and the purpose of its author when writing it. Additionally, the texts are tools for different professions to teach skills, knowledge and techniques depending on the requirement.

Learn more about text in: https://brainly.com/question/1142673

The definition of "nested statements" is _____.
a. elements of HTML that work within other elements of HTML
b. elements of specific text that work within elements of HTML
c. elements of specific code that work within elements of HTML
d. elements of HTML that work outside of elements of HTML

Answers

C??i think sorry if wrong ..

What does this Python expression evaluate to?

100 != 100

True

False

“True”

“False”

Answers

Answer: False

Explanation:

I want know answer for best way to copy formula on MS Access

Answers

Answer:

copy and paste is alternate

Can someone help me do this who ever does it first get 100 points :)

Answers

Answer:

Wired: Means a cable or a wire connected thats the opposite of wireless.

Wireless is bascially a device with no cable needed.

3G: GB

4G: GB

5G: GB

Explanation:

Wired: Means a cable or a wire connected thats the opposite of wireless.

Wireless is bascially a device with no cable needed.

3G: GB

4G: GB

5G: GB

conclusion for project for computer​

Answers

OK this question is answer easy the computer important of future

What are some settings you can control when formatting columns? Check all that apply.


Answers

Answer:

1,3,4,6,7, hope that helps'

Explanation:

Assume that students in a course are required to produce a written report on an ICT-related
the topic each semester. If you wanted to create a model to estimate how long it should take a student to
complete such an assignment, what measure of work content would you use? Some reports might be
more difficult to produce than others: what factors might affect the degree of difficulty? Provide a list
of factors and explain each briefly.

Answers

Based on the information given, the measures of work content that can be utilized will be:

The student's knowledge of the subject.   The work's difficulty. The student's research hours.

In order to create a model to estimate how long it should take a student to

complete such an assignment, the important measures include the knowledge of the student on the subject, research hours, etc. This may be evaluated on a scale of 0 to 10.

The factors that may influence the degree of difficulty include:

The student's access to materials for the assignment. The student's familiarity with the work. The amount of time required to fully grasp the subject.

Learn more about a model on:

https://brainly.com/question/17764105

Capstone Project part 11 quiz

What is the following code snippet checking? (1 point)
while response != "yes":

Othat response variable is not yet yes

O that response variable is yes

O if "yes" is indexed in an array for the variable "response"

O if the response variable is "no"



If you give all answers you will have an amazing Christmas!

Answers

It is checking if the response is not yet yes

Game have been a part of human life only recently in human history—about 1100 AD.
True
False

Answers

Answer:

The answer is false it has not

Answer:

B: False

Explanation:

it's just false

You would like the word "Employee" to appear in cells A1, B1, C1, D1, and E1. To be efficient, you should
type the label in Al and drag down column A
use the merge and center command
type the label in Al and use autofill
type the label in each of the cells

Answers

To be efficient, type the label in Al and use autofill. Check more about excel below.

What is Excel used for?

Microsoft Excel is known to be a kind of software that helps its users to be able to edit, organize and calculate data through the use of a spreadsheet.

Note that one can be able to duplicate a word such as "Employee" on excel by typing the label in Al  and use autofill.

Learn more about Excel from

https://brainly.com/question/25879801

#SPJ2


Type the correct answer in the box

How is it possible to understand the flow of data in an organization?

Conducting ______ with each team member makes it possible to understand the flow of data in an organization.

Answers

Data ?? I think sorry if wrong ..

the image on the right was prooduced by a computer. it shows a complex molecu;e consisting of many atoms. what would be an advantage of using a computer to create a model like this, instead of building it by hand?

Answers

Answer:

The image on the right was produced by a computer.It shows a complex molecule consisting of many atoms.

What would be an advantage of using a computer to create a model like this, instead of building it by hand.

By using computer-generated models, complex chemical structures can be represented with greater speed, accuracy, and flexibility, advancing research in a variety of scientific domains.

When developing a complex molecule model, such as the one shown on the right, there are various benefits to using a computer as opposed to doing it by hand.

The capacity to accurately depict and visualise complex chemical structures that would be too difficult or time-consuming to assemble manually is one important benefit.

Computers make it possible to locate atoms, bonds, and molecular parts precisely, guaranteeing scientific correctness.

Additionally, it is simple to experiment with and modify computer-generated models. Without the physical constraints of handling real components, scientists can quickly change chemical configurations, examine different conformations, and analyse their impacts.

Thus, this makes it easier to comprehend the interactions, behaviour, and characteristics of molecules.

For more details regarding computer-generated models, visit:

https://brainly.com/question/28545111

#SPJ3

what is the keyboard shortcut to display formulas on the worksheet

Answers

the keyboard shortcut is c=8

What refers to a set of instructions executed in order?
code block
code snippet
sequence
blueprint
30 points

Answers

Answer:

I think the answer is sequence

Answer:

sequence

sequence

¿Cuál es la capacidad pulmonar del hombre y la mujer?

Answers

Answer

El RV promedio en hombres es 1.2 L y para las mujeres es 1.1 L.

Other Questions
if 9 joules of energy are expended pushing on one coulomb of charge round a circuit, what is the emf across the circuit? Save You More offers a buy one/get one free item each week. Customers who purchase only one of the items must pay the regularprice. The limit is one deal per customer. Is the relation (# sale items purchased, price) a function? Why or why not?A)BIt is a function because the input can be either 1 or 2 items, but the outputwill always be the same price.It is not a function because the input can be either 1 or 2 items, but theoutput will always be the same price.It is a function because the input will always be the same price, but theoutput can be either one or two items.DIt is not a function because the input will always be the same price, but theoutput can be either one or two items. write the plural of each noun.1 child ______________2 friend _____________3 baby ______________4 lunch ______________5 bike ________________ A siren wailing makes me feel( irritated- nervous- scared - relaxed)and please if u know the answer tell me why u picked it because I can see all of them same meaning pls help What is the answer HELP!!!!!!!!!!!!!!!!!!!!!!!!! Help, no links pleaseHow does the author of Finding Flight incorporate ideas from the poem Hope is the thing with feathers into her work? How does she transform ideas from the poem in her work? Use evidence from the text to support your response. Your response should be at least one complete paragraph You went to a carnival. Each ride cost $2.50. Let n represent thenumber of rides. Write an equation of a line which has a slope of -2 and goes through the point (-4,11) Which of the following is a complex sentence?The mail came late just as it always seems to do when you are expecting a package.Did my package come in the late mail?Bobby was expecting a package, and the mail was late.The mail was late whenever he was expecting a package who is known as guthiyar and thakali ? can someone help me pls If a team won 2/3 of its games and lost the rest. what was the team's win-loss ratio Can someone plz help Me? Where did the minutemen get their name? Could include small details in their map drawings Could prepare an egg in a minute Limited their speeches to one minute Were ready to fight at a minute's notice What is not an example of potential energy?Question 3 options:A stretched rubber bandA ball sitting high on a shelfA pendulum at the top of its swing when it briefly stopsA car accelerating down a hill in the addition problem on the right, each letter stands for a digit and different letters stand for different digits. What digits do the letters H,E, and A each represent? H E H E H E+ H E____________ A E Question 28What is the speed in m/s of a car that travels 30km in 20 minutes?A: 1500 m/s B: 150 m/sC: 90 m/sD: 540 m/sE: None of these The diagram below shows a child pulling a 50.-kg friend on a 20 kg sled by applying a 300. newton force on the sled rope at an angle of 40 degrees with the horizontal. The sled moves at constant velocity as the person pulls with the 300 N force. Can someone help answer b plzzz 2+6i/2-4i = a + bi What is the value of a? What is the value of b?