Question: Please write this program in C guessing daily snowfall and then summing to predict total snowfall for a week -Ask the user to input the
Please write this program in C
guessing daily snowfall and then summing to predict
total snowfall for a week
-Ask the user to input the integer range of possible daily snow accumulations
-Generate and print an array of 7 random numbers (one for each day of the week) predicting daily snowfall
-Find and print the predicted sum of the week's snowfall by summing the numbers in the array.
A sample run:
Please enter the integer size range of daily snow accumulation (smallest largest): 2 4
snow on day 0 = 4 inches
snow on day 1 = 3 inches
snow on day 2 = 2 inches
snow on day 3 = 4 inches
snow on day 4 = 4 inches
snow on day 5 = 3 inches
snow on day 6 = 3 inches
The total accumulation is 23 inches.
#include
#include
#include
int main(void){
//Your code here!
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
