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

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:

How can you get access to Help? Click all that apply.
F1
View tab
Lightbulb
Review tab
Tell me what you want to do
the ? on the top-right corner in the Backstage View

Answers

In the top right corner there will be a sign like
[ ? ]. Click that sign.
Or Press F1 In keyboard
Then the window help will pop-up

The help function gives the access for help file which gives important information about how to work on the software. In MS office, the F1 tab can be used as a shortcut for help tab. Thus, the correct option is A.

What is help tab?

The Help tab provides access to Online Help, which can also be accessed by pressing the F1 key. This menu also contains a number of links to specific important information and how-to topics in the help and some useful links to the Software website which makes the experience of customers easy.

The help feature also connects a person to many of the Microsoft Office online help features, including Microsoft Office Assistance, Training, Communities, and Downloads.

The View tab in MS office enables a person to switch between Normal or Master Page, and Single Page or Two-Page Spread views. The purpose of the Review Tab in software is proofing the document and providing possibilities for seeking feedback on the final edits.

Therefore, the correct option is A.

Learn more about Help tab here:

https://brainly.com/question/17193779

#SPJ2

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:

ON TEST HELP!
Which option in the Caption dialog box configures whether the caption appears above or below the image?
O Label
O New Label
O Position
O Numbering

Answers

I think it’s numbering but I hope this helps

Answer:

C: Position

Explanation:

Which function of a web page relies on responsive web design? Adding extra horizontal scroll Blocking mobile devices from viewing Eliminating extra links Resizing content to fit a screen

Answers

Answer:

Resizing content to fit a screen

Explanation:

Responsive means a website that is able to adapt its contents to the size of the device used for viewing.

Answer:

Resizing content to fit a screen

Explanation:

Properly worn safety belts help prevent
passengers from hindering the driver in any
sudden emergency maneuvers. True or False

Answers

Answer:

True

Explanation:

This one was a bit tricky because I've never heard that as a feature, but it is true that they could be of help.

The statement that Properly worn safety belts help prevent passengers from hindering the driver in any sudden emergency maneuvers is; True

Seat belts are always advised to be worn by both passengers and drivers so that in case of any accident or sudden emergency, neither the passengers nor driver are ejected out of the car which would be worse.

With reference to the statement above, it is clear that a passenger wearing a seat belt properly would prevent hindering of the driver in a sudden emergency maneuver because the chances of the passenger being ejected or flying in the direction of the driver is unlikely.

Read more on importance a safety seat belt at;https://brainly.com/question/10950550

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:

its not loading for me :/

Explanation:

Answer:

they can get a better background of what they're learning about

Explanation:

All of the following are helpful tips for protecting your digital privacy, except:

A. Review the privacy policy and terms of service

B. Turn cookies on in your browser settings

C. Review the app’s privacy settings and opt out of any sharing options you’re not comfortable with.

D. Use ASK ( what’s accessed, shared, and known) to analyze how using the app will affect your privacy.

Answers

Answer:

B

Explanation:

Cookies are used to track visitors of websites

B. Turn cookies on in your browser settings

Josh wants to sign up for a gaming website. It will allow him to download games. He can’t find a privacy policy. Should he join the website?

A. Sure, you know how much josh likes to play games

B. Yes, there’s not much personal information that josh shares by playing

C. No, Josh could be sharing all sorts of information that he doesn’t want to. Without understanding the privacy policy, he won’t know what they collect and why

Answers

Answer:

c

Explanation:

process of elimination

C because a privacy policy is very important and without one the website isn’t very safe.

where do you expect to participate in distance learning from?

Answers

Answer:

hahaha very funny

Explanation:

pls rate this answer a 5/5 and heart it

Answer: Huh... Obviously Brainly

Explanation:

Give me the Brainliest!!

What is a tag in an HTML document?

Answers

Answer: HTML is considered as the Lingua franca of the net that is a simple mark up language used for the purpose of web publishing for creating text and images. This can be viewed by any of the member and can be used within any browser. There is no need of special software for creating HTML pages and moreover the learning of HTML is pretty easy.

Explanation: If you need more help go follow me at dr.darrien

- thank you

They are absolutely right.

Which tools can be found in the Page Layout tab of the ribbon? Check all that apply.
Print Area settings
font size and color
printer selection
margin settings
orientation
Print Titles

Answers

Margin Settings and Orientation

Answer:

A. D. E. F.

Explanation:

edg 2020

Other Questions
A transformation T : (x, y) (x + 3, y + 1). The preimage of the point (4, 3) is (-1, -2) (7, 4) (1, 2) For his persuasive speech, Tomas first identified all the objections to his position, and then he used evidence to argue against those objections. What organizational pattern is Tomas using for his speech I need help on answering this question If c o v (x comma space y )space equals space 1260, s subscript x squared equals 1600, and s subscript y squared equals 1225 , then the coefficient of determination is: hi guys!!! i have no more points, can someone nice guess all of these for me? :) 1.What happens to the ocean water before the precipitation part of the water cycle 2.During which stage of the water cycle does water from the ocean form clouds? 3.what is a runoff?? 4.Which statement about oceans is incorrect? A.Evaporation occurs when water is warmed by the sun. B.Most evaporation and precipitation occur over the ocean. C.97 percent of Earth's water is fresh water from the ocean. D.Water leaves the ocean by the process of evaporation 5.How does most ocean water return to the ocean in the water cycle tysm to u who answers :) pls help Fill in the blank with the correct definite article. (You do not have to know the word, but look at the ending) ___ finesse. Le La erekes Manufacturing Corporation has prepared the following overhead budget for next month. Activity level 3,200 machine-hours Variable overhead costs: Supplies $ 16,640 Indirect labor 29,120 Fixed overhead costs: Supervision 15,400 Utilities 6,600 Depreciation 7,600 Total overhead cost $ 75,360 The company's variable overhead costs are driven by machine-hours. What would be the total budgeted overhead cost for next month if the activity level is 3,100 machine-hours rather than 3,200 machine-hours A ball is thrown upward from a height of 432 feet above the ground, with an initial velocity of 96 feet per second. From physics it is known that the velocity at time t is v (t )equals 96 minus 32 t feet per second. a) Find s(t), the function giving the height of the ball at time t. b) How long will the ball take to reach the ground? c) How high will the ball go? Use the grouping method to factor x3 + x2 + 2x + 2. Use the diagram to complete the statement. Triangle J K L is shown. Angle K J L is a right angle. Angle J K L is 52 degrees and angle K L J is 38 degrees. Given JKL, sin(38) equals cos(38). cos(52). tan(38). tan(52). A compound sentence is at least two independent clauses joined by a comma, semicolon or conjunction. For example, "My mother is beautiful, and my auntie is cute."Please, write a compound sentence about things that make you happy. 156. A solid metal sphere has a volume of 4.2 ft}. The massof the sphere is 155 lb. Find the density of the metalsphere in grams per cubic centimeter. sadhu said to Tarun," Did you deposit the school fees?''change it into indirect speech What is the distance between the points (5,1) and (-3,-5)? on terms of genetic similarity, which list is ordered from most similar to least similar b. cousin, uncle, mother, non twin sibling, identical twin What are responsibilities of entrepreneurs? Check all of the boxes that apply.to own businessesto work for companiesto be responsible for employeesto be responsible to stakeholdersWhat are responsibilities of employees? Check all of the boxes that apply.to own businessesto work for companiesto be responsible for employeesto be responsible to stakeholders. Determine whether the statement is true or false. If it is false, rewrite it as a true statement. A sampling distribution is normal only if the population is normal. Choose the correct answer below. A. The statement is false. A sampling distribution is normal only if n30. B. The statement is false. A sampling distribution is normal if either n30 or the population is normal. C. The statement is true. D. The statement is false. A sampling distribution is never normal. Why is the communication results circle linked to the circle labeled science and society I don't understand this question, somebody help One model of the length LACL of a person's anterior cruciate ligament, or ACL, relates it to the person's height h with the linear function LACL=0.04606h(41.29 mm) This relationship does not change significantly with age, gender, or weight. If a basketball player has a height of 2.13 m, approximately how long is his ACL?