logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Your program should then find the average rain falls for each of the 9 districts and store the result into a one-dimensional array of float.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Write a C program that reads from a text file “districts.txt” names of the 9 districts in Palestine (Jenin, TulKarim, Qalqilya, Nablus, Ramallah, Jericho, Jerusalem, Bethlehem, and Hebron) and their corresponding rain falls in millimeter for the last 5 years.

Your program should store the names of the districts into a one-dimensional array of names, and the rain falls into a two-dimensional array 9x5 of integers.

Your program should then find the average rain falls for each of the 9 districts and store the result into a one-dimensional array of float.

Your program should print the following onto screen:

 

  • The names of the 9 districts and their rain falls for  the last 5 years.

 

  • The names of the 9 districts and the average rain fall for each sorted in descending order based on the rain fall average.

 

  • The total rain falls for each district in the last 5 years in millimeter.

 

  • The districts with the maximum and minimum rain falls.

 

The text file should look like:

 

Jenin  500  550  450  720  910

TulKarim   400  580  455  700  820

Qalqilya   300  550  450  720  410

Nablus   600  550  460  700  910

Ramallah   500  550  450  720  770

Jericho  720  650  460  720  456

Jerusalem  440  550  450  720  710

 BeitLahem  600  550  450  720  310

Hebron  530  550  450  720  330

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

524 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

660 Answers

Hire Me
expert
Husnain SaeedComputer science

685 Answers

Hire Me
expert
Atharva PatilComputer science

647 Answers

Hire Me