1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
7nadin3 [17]
3 years ago
8

Question 2: Sum of consecutive odd View Past Answers No past answers. Write a program which asks user to enter an integer n, cal

culates 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)
Computers and Technology
2 answers:
Vikentia [17]3 years ago
6 0

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.

svp [43]3 years ago
4 0
Answer:

Step-by-step Explanation:
You might be interested in
HLOOKUP is used for Horizontal Data look ups while VLOOKUP is for Vertical Data look ups
mrs_skeptik [129]

Answer:

True

Explanation:

Both HLOOKUP and VLOOKUP are excel functions used for searching through tables for a specified lookup value to either get an exact or approximate match. The VLOOK and HLOOKUP functions have identical syntax which only differs with the HLOOKUP requiring the row index number to search through the rows while, VLOOKUP requires the column index number to search through the columns. Other than this difference, the other syntax values are the same.

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

5 0
3 years ago
A(n) ____________ calculator is a device that assists in the process of numeric calculations but requires the human operator to
Zielflug [23.3K]

Answer:

The answer that goes in the blank is <u>manual</u>

Explanation:

Have a good day :)

8 0
2 years ago
When a range of ip addresses is set aside for client devices, and one of these ips is issued to these devices when they request
snow_lady [41]

When a range of ip addresses stands set aside for client devices, and one of these ips stands issued to these devices when they request one, this exists known as Dynamic Allocation.

<h3>What is an IP address?</h3>

IP address stands for “Internet Protocol address.” The Internet Protocol exists as a set of rules for communication over the internet, such as sending mail, streaming video, or connecting to a website. An IP address specifies a network or device on the internet.

An IP address stands for a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which exists as the set of rules controlling the format of data sent via the internet or local network.

A 'Client Device' may direct to any computer with access to data from another computer. In this sense, a server may sustain a network composed of numerous client devices in the form of desktop PCs, laptops, smartphones, and tablets.

Hence, When a range of ip addresses stands set aside for client devices, and one of these ips stands issued to these devices when they request one, this exists known as Dynamic Allocation.

To learn more about Dynamic Allocation refers to:

brainly.com/question/24688176

#SPJ4

8 0
2 years ago
What sort of technique would you use to sort 10,000 items using just 1000 available slot in your RAM?
beks73 [17]

Answer:

d. Merge sort

Explanation:

Merge sort is example of an efficient sorting alogrithm. The Divide and conquer rule is used in this technique. This method breakdown the list into multiple sublists and each sublist contains a single element. This technique merged in the form of sorted lists. This technique uses external memory of the system while sorting.

Merge sort is used to sort the 10,000 items using only 1,000 slots available in the RAM.

5 0
3 years ago
____ programs are software programs that are distributed on the honor system.
Nostrana [21]
Shareware program and they are also used free of charge.**
3 0
4 years ago
Read 2 more answers
Other questions:
  • In Microsoft Excel graphs are referred to as ______?
    14·2 answers
  • Being technologically literate requires being able to ______.
    11·2 answers
  • Megara would like to create a web page using web design software, but she does not have any money to spend. What would you sugge
    15·1 answer
  • B. What is a window?​
    8·2 answers
  • When adding shapes to a presentation, the outline can be one color, and the fill must be the exact same color.
    12·2 answers
  • Drag the tiles to the correct boxes to complete the pairs.
    13·1 answer
  • PLEASE PLEASE HELP pleeeeeeeeeaaaase
    12·2 answers
  • Three different numbers need to be placed in order from least to greatest. For example, if the numbers are ordered 9, 16, 4, the
    9·1 answer
  • 5.5 Learning Objective: To demonstrate that the student understands the definition of Big O. To demonstrate that the student und
    11·1 answer
  • 2
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!