Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that calculates the average rainfall for four months. The progra

ID: 3528445 • Letter: W

Question

Write a program that calculates the average rainfall for four months. The program should ask the user for their name and their city and to enter the name of each month, such as June or July, and the amount of rain (in inches) that fell each month. Your program should print a table displaying the 4 months data in a 3 column table (refer to the following sample), and print the name of the months with most and least amount rainfall nicely labeled. Thank you sooooo much :) ! and if you can... Draw a histogram for the four months rainfall similar to the one below: August | September |*** October |******* November |****************

Explanation / Answer

/*Write a program that calculates the average rainfall for three months. The program should ask the user to enter the name of each month, such as June or July, and the amount of rainfall (in inches) that fell each month. The program should display a mes- sage similar to the following: The average rainfall for June, July, and August is 6.72 inches.*/ #include #include using namespace std; int main() { char month1[8], month2[8], month3[8]; double rainfall, avg_Rainfall; double totalRainfall = 0; //create a variable to hold the total rainfall cout > month2 >> month3; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote