c++ code program, a program ask person to enter the whole rainfall for 12 months into (array of doubles)This system ought to use two 12-element arrays. One array will maintain strings, the names of the 12 months.This array will be initialized when the array is created utilizing an initialization checklist(may additionally be created as a array of constants).The second array will maintain (doubles) which (whole rainfail for every month).This system will immediate the person for the rainfall for every month (utilizing each arrays) and retailer the worth entered into the array with the rainfall totals;the opposite is used to show which month this system is asking for the rainfall whole.(This system ought to show the next as soon as the information is all entered:)The entire rainfall for the yearThe common month-to-month rainfallThe month with the best quantity of rainfall(should show the month as a string)The month with the bottom quantity of rainfall(should show the month as a string)(This system will need to have the next capabilities :)double getTotal(double[], int);double getAverage(double[], int);double getLowest(double[], int, int&); //returns the bottom worth, supplies the index of the bottom worth within the final parameter.double getHighest(double[], int, int&);//returns the best worth, supplies the index of the best worth within the final parameter.how? I’m actually new about programming, I’m not positive how you can put them in arrays.

Published by
Essays
View all posts