logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

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

expert
Shruti TalpadeScience
(5/5)

701 Answers

Hire Me
expert
William BellBusiness
(5/5)

525 Answers

Hire Me
expert
Anthonius HermanusManagement
(5/5)

964 Answers

Hire Me
expert
Persimmon BissoondathhCriminology
(5/5)

993 Answers

Hire Me
C Programming

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

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. 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

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme