Question: Question 19 2 pts The following parallel arrays store information about 1000 apartments in Jordan. string city[1000); // store the cities where these apartments are


Question 19 2 pts The following parallel arrays store information about 1000 apartments in Jordan. string city[1000); // store the cities where these apartments are located int bedRooms(1000); // store the number of bedrooms in each apartment int price[1000); // store the price of each apartment Which of the following code segments calculate the average price of all apartments which have three or more bedrooms and not located in Irbid. The result stored in the variable "x". int x; for(int i=0; i=3 && city[i] "Irbid") e hu thuraya io/courses/1442/quizzes/4596/take/questions/74639 int for(int i=0;i-3 & city[1] - x++: "Irbid) X /-1000; int x 0; for (int 10;i * city[i] !- "Irbid") * -price[1]; */-1000; All the answers are correct int x; for(int i=0; i> 4 city) - trid") intxo) for(int loc yalo/courses/1442/quizzes/4596/take/questions/74639 int - for(int i;i- 8 city) - "Irbid) x + price[1]: } x /-1000; All the answers are correct int x 0; for(int i-e; i=3 && city[1] "Irbid") 3 O int x=0; "Irbid") for(int i=0; i=3 && city[i] x + price[i]; ) x /-1000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
