Question: write the c code to declare and initialize an array named locations of size 3, containing the following Part I. Earthquakes in the El Paso

write the c code to declare and initialize an array named locations of size 3, containing the following
 write the c code to declare and initialize an array named

Part I. Earthquakes in the El Paso area take residents by surprise, but actually it is not that unexpected to have small tremors along local fault lines. 1. Write the C code to declare and initialize an array named locations of size 3, containing the following El Paso, Juarez, Las Cruces cho loca+ons 3 E) Pasoy Juo rez, Las Cruces Write the C code to declare an integer array named numQuakes, also size 3. This array is parallel to the locations array, and will be filled with the corresponding number of recent earthquakes for each of the cities listed above. Using a loop, prompt the user to enter the number of earthquakes for each location and save the numbers in the correct positions of the numQuakes array. 2. int numQuakes print f ("Enter ru mber earthquakes for each loco-ion : L oco-on-%e, Write the C code to declare and initialize an array of floating point values, named intensities. This array is parallel to both the locations and numQuakes arrays above and will contain the corresponding Richter scale intensity value measured for the most recent earthquakes for each of the locations. Use your choice of values for initializing thi array. double intensifies Write the C code to identify and display the largest earthquake intensity value stored in the intensities array. extra credit: also identify the index position in the array where the largest value is found. Use this index val obtain and display the corresponding name of the city which had the largest value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!