(Solved) : Exercise 1 Future Gulf Rail Table Shows Cost One Way Travel Using Future Gulf Rail Train D Q32729618 . . .
C++
Exercise #1: Future Gulf Rail The table below shows the cost of one way travel using the future Gulf Rail train between different cities in the gulf area in AED. For instance, the cost of travelling from Doha to Riyadh is 850 AED, and the cost of travelling from Riyadh to Doha is 720 AED. The below table can be saved into a two dimensional array where the rows and columns represent the cost to travel between these cities To Doha Abu Dhabi Rivadh Manama From 850 600 1100 Doha Abu Dhabi Rivadh Manama 890 720 550 400 1300 280 850 1000 350 Write a C++code that does the following: 1. Read the costs from keyboard and stores them in a two dimensional array called GulfRail where the number of cities is 4 2. Calculate the average cost for traveling To Doha. 3. Modify the two dimensional array GulfRail by reducing the cost of travel from Riyadh by 20%. nter the 16 costs:8 1100 850 400 898 600 1300 720 850 θ 288 550 1000 350 e 1100 850 400 398 θ 600 1300 ,20 85θ θ 280 50 1000 350 θ he average is: 720 rint the array after reduction: 1100 850 480 398 θ 600 1300 576 680 θ 224 0 1000 350 process returned θ (8×0) execution time : 164.764 s Show transcribed image text
Expert Answer
Answer to Exercise 1 Future Gulf Rail Table Shows Cost One Way Travel Using Future Gulf Rail Train D Q32729618 . . .
OR