This Program Will Be A Modification Of The Program Done In Ciss 241 W This program is a modification of the Rainfall Statistics program originally created in CISS 241, Week 7 Programming Assignment 1. The objective is to enhance the existing program by adding functionality that sorts the months according to rainfall from highest to lowest, and displays this sorted list. The program involves user input for monthly rainfall data, storage of data in arrays, and computation of various rainfall statistics. Specifically, the program should initialize two arrays of size 12: one to hold the names of the months as strings, and the second to store the total rainfall for each month as doubles. The program will prompt the user to enter the rainfall for each month, storing the input in the rainfall array while maintaining the chronological month order in the name array. After data entry, the program will compute the total annual rainfall, the average rainfall, identify the months with the highest and lowest rainfall, and finally display the months sorted in descending order of rainfall, along with the relevant statistics.
Paper For Above instruction The rainfall statistics program is a classic example of data collection, processing, and presentation, which can be significantly improved through effective data organization and sorting strategies. The primary objective of this modification is to enable the program not only to calculate key statistics like total, average, maximum, and minimum rainfall, but also to display the months in order of rainfall from highest to lowest. This requires implementing an efficient sorting mechanism alongside the existing data processing functions. Introduction Rainfall data analysis plays an essential role in meteorology, agriculture, and water resource management. Analyzing rainfall patterns helps in understanding climate trends and making informed decisions. In programming education, such projects serve as exercises in array management, function writing, sorting algorithms, and user interaction. The original CISS 241 rainfall program accomplished basic statistical calculations; the present modification aims to enhance its functionality by adding sorting and improved data presentation. Data Structures and Initialization The program employs two arrays: a string array to store month names and a double array to store