Question: 1.Ans the following question: i) Write a Ch program that lets the user enter the total rainfall for each of 12 months into an array

1.Ans the following question: i) Write a Ch program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should then calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. Input Validation: Do not accept negative numbers for monthly rainfall figures. ii) Define an array of strings to store the name of your friends in this class. a) Initialize the array with 5 names. b) Print the names. c) Write a function to change the names in the array. void changeName(char [][25], int size)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
