Question 2: Sum of consecutive odd View Past Answers No past answers. Write a program which asks user to enter an integer n, calculates the total sum of the consecutive ODD integers from 1 to n (inclusive of n if n is odd) and store in the variable called sum calculates the average value of the consecutive ODD integers from 1 to n and store in the variable called average prints the value of sum and average For example if n = 7, the program will compute 1+3+5+7, sum = 16, average = 4 if n = 6, the program will compute 1+3+5, sum = 9, average = 3

Pls help ya thx(btw this is python)

Answers

Answer 1

Answer:

number = int(input("Enter number ") )

sum = 0

count = 0

for x in range(1, number+1, 2):

 sum += x

 count += 1

average = sum/count

print("sum = %d"% sum)

print("average = %d"% average)

The range() function conveniently lets you enumerate all odd values from 1 to your number.


Related Questions

A
works with database management software and determines ways to store, organize, analyze, use, and present
data.
data modeler
network administrator
applications architect
database administrator

Answers

Answer:

If your organization uses a database management system (DBMS) for mission-critical ... efficacy of modern applications that rely on databases for data storage and access. ... including troubleshooting, root cause analysis, fine tuning and optimizing the ... the business lexicon and translating it into a logical data model.

Explanation:

database administrator

Which of the following is an Important criterion for evaluating the effctiveness of a graphic organizer

Answers

Answer:

how colorful it is how well it conveys information

Explanation:

Answer:conveys

Explanation:

Which of the following defines what privacy policy is?

A. A legal document that an app or website must provide which describes what user information they collect and how they use it.

B. A legal document that an app or website must provide which describes the rules that the company and users must obey when they use the app

C. Choices a website or app provides users about what information is collected and visible to others

Answers

Answer:

c

Explanation:

b is a terms of service

The correct option is C. Privacy Policy is the choice a website or app provides users about what information is collected and visible to others.

An organization's privacy policy outlines how it will handle any customer, client, or employee data obtained during business operations. The majority of websites provide users with access to their privacy policies.

Why is it important to read the privacy policy of the website you are using?

The legal document for a website is its privacy policy. It describes the company's specifics, viewpoints on visitor statistics, and operational practices. Any website must have a privacy policy, and firms should ensure that it is factual and understandable even to non-technical people.

Establishing boundaries to control who has access to our bodies, locations, and objects, as well as our conversations and information, is made easier by privacy. In the face of huge power disparities, the laws that safeguard privacy enable us to stand up for our rights.

Thus, The right answer is C. A website's or app's privacy policy lets users choose what information is gathered and made public.

Learn more about privacy policy here:

https://brainly.com/question/28271379

#SPJ2

Identify the image tag attribute being described.
The v attribute is used to tell the browser
where the desired image can be found.
The v attribute is used to provide tool tip text
to display when a user pauses over an image with
the mouse pointer.
The attribute is used to provide the text to
display (or read) if the browser cannot find the
designated image.

Answers

Answer: I think its a scroll down where you click it and it reveals more information not on the topic but about it

Explanation:

Technician A says that nonemission-related codes that make the malfunction indicator lamp (MIL) illuminate are called "Type A" codes. Technician B says that emission-related codes that illuminate the MIL after the first fault are called "Type A" codes. Who is correct?


A. Neither Technician A nor B

B. Both Technicians A and B

C. Technician B

D. Technician A

Answers

Answer:
D: Technician A

Technician B says that emission-related codes that illuminate the MIL after the first fault are called "Type A" codes which is correct. The correct option is C.

What is malfunction indicator lamp?

A computerised engine-management system will use a check engine light or malfunction indicator lamp to signal a problem.

A dashboard indicator that illuminates when the car's computer detects an issue that could lead to excessive pollution.

This usually signifies that you need to fix your car to prevent further, more expensive damage. The moment the light starts blinking or flashing, take your car in for maintenance.

The engine and emissions controls of your automobile could be harmed if you continue to drive with the malfunction alert lamp on. The warranties on your car might not cover those repairs.

Emission-related "Type A" codes cause the Malfunction Indicator Lamp (MIL) to turn on (illuminate) during the first trip (fault).

Thus, the correct option is C.

For more details regarding malfunction indicator lamp, visit:

https://brainly.com/question/28068107

#SPJ5

Which of the following statements can be used as evidence that ancient Greek beliefs and art has been influential? Select the three correct answers. A. The Metropolitan Museum of Art in Modern in New York City contains many abstract paintings. B. We read fables as children to learn moral lessons. C. Today sculptors and painters avoid realism in their art. D. The columns of the Lincoln Memorial in Washington D.C. provide balance and harmony. E. Comedies and dramas are popular types of theater on Broadway.

Fist one will mark brainlyest

Answers

Answer:

A, B, D

Explanation:

I'm gonna go with these few answers because, well I'm not an expert with this stuff but the Metroplian Museum of Art has the Greek Design on the walls. And B, children are required in school to read such things for this reason. And D, seams like the correct answer for this better than the other ones.

Hope I helped you out, Reza106157

Answer:

B

Explanation:

why would it be essential for the successful A/V technician to participate in additional coursework, presentations, and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry?​

Answers

Answer:

The job duties of audio video technicians include the assembly, functioning,  and minor maintenance activity on video display monitors, and cameras, and sound equipment

A/V technicians educational requirement for entry level jobs are an associate degree or bachelors degree in video or TV broadcasting related programs and also taking part in projects that get them first hand exposure to the operational capabilities of current A/V equipment to develop dexterity, technical know how, training in hearing, visually detecting sound and image quality

A/V technicians will therefore be required and encouraged to take part in presentations equipment manufacturer seminars and conferences to be able meet the skill level requirement for the predominantly hands on occupation of an A/V technician

Explanation:

Thank goodness I could not find this answer anywhere thank you.
Other Questions
Use the measure of the sides of triangle ABC to classify the triangle by its sides A(-1,3) B(-3,5) C(3,2) you move right 3 units and left 4 units. you end at (-3,-1). where did you start? Please help me how to do no 5 Match the followings with each others.1. Unicameral Legislature2. The Constitution 3. Articles of Confederation 4. Federal judiciary established a. representative elected by popular voteb. Constitutionc. States authorized to equip warship to counter piracyd. Articles of Confederation Even though most corporate bonds in the United States make coupon payments semiannually, bonds issued elsewhere often have annual coupon payments. Suppose a German company issues a bond with a par value of ? 1000, 25 years to maturity, and a coupon rate of 6.4 percent paid annually. If the yield to maturity is 7.5 percent, what is the current price of the bond? How would I solve this question? y = -1 1/8 - 7/8x -4x + 9y = -22 x = ?, y = ? predict the reading of the spring balance when the wooden block is pulled on the sandpaper. Explain your answer. You have worked these hours this week: 5 4/5, 6 1/3, 8 2/5, 4 2/3. How many hours did you work Chris had $4 in cash, with which he purchased coffee for $0.79, a bag of chips for $1.69 and a lottery ticket for $1.00. If he does not have to pay sales tax, how much change should he receive? ASAP!!!!!!!!! PLEASE help me with this question! This is really urgent! No nonsense answers please. Which type of volcanic mountain has wide, gentle slopes? The password for a certain safe is indicated by multiplying (x^2-16)/(x-1) with 1 / ((x ^ 2 + 6x + 8) / (x ^ 2 + 2x-3)) . Knowing that the value of X = 9. What is the numeric value of the password. The Greenbaum family agreed to pay for 3 months of an online TV service in exchange for a $5 credit on the bill each month. If the Greenbaums spend a total of $11.85 on the service over the 3 months, what is the normal price of one month of online TV service?$5.00$6.85$8.95$30.55 You decide to invest in a portfolio consisting of 30 percent Stock A, 30 percent Stock B, and the remainder in Stock C. Based on the following information, what is the expected return of your portfolio? State of Economy Probability of State Return if State Occurs of Economy Stock A Stock B Stock C Recession .17 - 18.8 % - 3.9 % - 22.8 % Normal .45 10.2 % 8.5 % 17.1 % Boom .38 28.6 % 15.8 % 31.7 % Describe the pathophysiology solve 3/4x+5=-9 please Little bit more math hw Qual foi o ltimo pedido que o capito Leclre fez a Dants? livro : Conde Monte Cristo Type 2 diabetes (insulin-independent diabetes) is a non-infectious disease. If not treated this disease is characterised by large fluctuations in the concentration of glucose in the blood Maltase is an enzyme that completes the digestion of starch in humans Molecules of maltase are bound to the microvilli of epithelial cells in the small intestine Ascorbate is a drug used in the treatment of type 2 diabetes. Molecules of ascorbic have a very similar shape to that of the substrate for maltase. (1) Explain how ascorbase acts to inhibit these membrane-bound enzymes. Can anyone provide me the answer with explanation?