Answer:
Following are the code in the C Programming Language:
/*-----code is here-------*/
murderCount=0; //set count of murder to 0
for (int i=0; i<NPRECINCTS;i++) //set for loop
murderCount += allPrecincts[i].murders; //traverse the precincts to murder
Explanation:
In the following code, we use structure through C Programming Language in which we write the following code of structure.