3. Write a program that reads (up to 100) temperature values from a file called input.txt. Read the temperature values and the name of the city into two arrays. Use functions to determine the city...


C++


C++


C++


3. Write a program that reads (up to 100) temperature values from a file called input.txt.<br>Read the temperature values and the name of the city into two arrays. Use functions to<br>determine the city that has the maximum temperature, the minimum temperature. The<br>program outputs all results to another file called output.txt.<br>Output.txt + X<br>Muscat has the maximum temperature which is 42<br>Salalah has the minimum temperature which is 27<br>input.txt* + x<br>Muscat<br>42<br>Sohar<br>38<br>Salalah<br>27<br>Sur<br>29<br>Seeb<br>40<br>Nizwa<br>39<br>Mutrah<br>41<br>Ibri<br>38<br>

Extracted text: 3. Write a program that reads (up to 100) temperature values from a file called input.txt. Read the temperature values and the name of the city into two arrays. Use functions to determine the city that has the maximum temperature, the minimum temperature. The program outputs all results to another file called output.txt. Output.txt + X Muscat has the maximum temperature which is 42 Salalah has the minimum temperature which is 27 input.txt* + x Muscat 42 Sohar 38 Salalah 27 Sur 29 Seeb 40 Nizwa 39 Mutrah 41 Ibri 38

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here