C++ programming Help?

Question by : C++ programming Help?
Have the weatherman enter the range for the snowfall by entering the minimum amount of
snow possible and the maximum amount of snow possible possible.

Then have your program display
the random numbers as the amount of snow that will fall on Friday, Saturday, and Sunday

Heres my solution so far but it doesnt work. Any help??

#include
#include
using namespace std;
int main()
{

const int SIZE=43;
char name[SIZE];

int min_weather;
int max_weather;

cout<<"I will forcast how much snowfall there will be on each\n"; cout<<"day this weekend. You get to pick the range."<>min_weather;
cout<<"Please enter the maximum amount of snow that\n wiil fall in one day:"; cin>>max_weather;
cin.ignore();
cout <<"\nEnter the name of the ski resort: "; cin.getline(name, SIZE); cout<Best answer:

Answer by sean Doyle
you have to change the variable after you output it to the screen to get a different number of inches

#include
#include
using namespace std;
int main()
{

const int SIZE=43;
char name[SIZE];

int min_weather;
int max_weather;

cout<<"I will forcast how much snowfall there will be on each\n"; cout<<"day this weekend. You get to pick the range."<>min_weather;
cout<<"Please enter the maximum amount of snow that\n wiil fall in one day:"; cin>>max_weather;
cin.ignore();
cout <<"\nEnter the name of the ski resort: "; cin.getline(name, SIZE); cout<

Give your answer to this question below!

Leave a Reply

Your email address will not be published. Required fields are marked *