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
ANEK [815]
3 years ago
14

g Write a general-purpose program with a loop and indexed addressing that calculates sum of the values of elements of a DWORD ar

ray that are located at multiple of 4 location. For example for the array 1,2,3,4,5,6,7,8,9,10,11,12,13,14
Computers and Technology
1 answer:
Vikki [24]3 years ago
7 0

Answer:

def sumD4th(dword):

   select = dword[3::4]

   print(sum(select))

mylist = [1,2,3,4,5,6,7,8,9,10,11,12,13,14]

sumD4th(mylist)

Explanation:

The python program above defines a function called "sumD4th" that accepts a list as its argument. The variable "select" is created which is the subset of the list argument "mylist" containing the index items that is a sum of four. The output of the function is the sum of the items in the "select" list.

You might be interested in
What is the most important factors to consider when designing a powerpoint presentation?
balandron [24]
It is always helpful to choose a template, and an attractive theme to begin with. Next, display only the keywords or phrases that you need in your PowerPoint. This will help it look less boring (if its a whole paragraph of writing, it looks boring). Lastly, it is important to add visuals or images to your PowerPoint. Google Slides is also very convenient to use. Please message me if you have any other concerns! 
3 0
4 years ago
Read 2 more answers
Given a Fully Associative cache with 4 lines using LRU replacement. The word size is one byte, there is one word per block, and
uranmaximum [27]

Answer:

3 bits

Explanation:

Capacity of main memory=16 Bytes=24

The number of address bits= 4 bits.

The size of the word= 1 Byte=20

The word bits=0.

Number of lines =4

Number of sets required=21

The sets bits is =1

The number of offset bits=20=0

Number of tag bits= total number of address bits - (word bits + offset bits + set bits)

= 4 - 0 -0- 1

= 3 bits

8 0
3 years ago
Which slideshows design can not be use?
Readme [11.4K]

Answer:

Is there suppose to be a pic ?

Explanation:

7 0
3 years ago
The copy button copies the contents and format of the source area to the office ____, a temporary storage area in the computer’s
Norma-Jean [14]
The answer is most likely RAM
3 0
3 years ago
Question 4 (5 points) If your social media accounts are___________, college admissions representatives can look at your social m
noname [10]

If your social media accounts are public, college admissions representatives can look at your social media activity when deciding whether or not to accept you at their school.

<h3>What is a public social media account?</h3>

Public social media account is also known as the open account, in which any people can check the person's post and like and share the post. Basically, famous people like to keep their account public to gain more publicity.

Thus, option D is correct.

For more details about Public social media account, click here:

brainly.com/question/23378133

#SPJ1

8 0
2 years ago
Other questions:
  • Which loan type requires you to make loan payments while you’re attending school?
    10·1 answer
  • Where does the VLookup function find its lookup values?
    14·1 answer
  • Jeremy, a college student, is preparing to give a speech on "Social Responsibilities." He refers to a Web page on a tab using
    10·1 answer
  • Computer user support helps people with minor computer problems. <br><br> True or False
    12·1 answer
  • ____ devices are high-performance storage systems that are connected individually to a network to provide storage for the comput
    5·1 answer
  • You are configuring a wireless network with two wireless access points. Both access points connect to the same wired network. Yo
    15·1 answer
  • Create an array to hold the rainfall values. Create a 2nd parallel array (as a constant) to hold the abbreviated names of the mo
    9·1 answer
  • Pls help ...
    13·1 answer
  • Write an algorithm for finding the perimeter of a rectangle
    6·1 answer
  • WILL GIVE A BRAINLIEST!!! PLS HELP!!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!