Before anything, I would advise you to read the whole first and second sections of this site's tutorial. The errors I can find by looking:
1 2 3 4 5 6 7
|
//Declare Variable
int state1= AL;
int state2= GA;
int state3= FL;
int state4= MS;
int state5= LA ;
int state6= TN;
|
You aren't declaring here, you're initializing them also, with invalid data types. Since it's an int, it can't hold text, such as AL or GA. You should use a string or char array.
1 2 3 4 5 6 7 8 9 10 11 12 13
|
//Display to Screen
cout<<"Alabama"<< endl;
cin>> State1;
cout<<"Georgia"<<endl;
cin>> State2;
cout<<"Florida"<< endl;
cin>> State3;
cout<<"Mississippi"<<endl;
cin>> State4;
cout<<"Louisiana"<<endl;
cin>> State5;
cout<<"Tennessee"<<endl;
cin>> State6;
|
I don't know why would you want somewone to input something here, since it's only to display, plus, all those variables aren't declared.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
If (shipping price >=$15)
cout<<"Montgomery, Alabama, flower Camellia, Cotton State"<<endl;
else if(shipping price >=$25)
cout<<"Atlanta, Georgia, flower Cherokee Rose, Peach State"<<endl;
If (shipping price >=$35)
cout<<"Tallahassee, Florida, flower Orange Blossom, Sunshine State"<<endl;
else if(shipping price >=$45)
cout<<"Jackson, Mississippi, flower Magnolia, MS Magnolia State"<<endl;
If (shipping price >=$55)
cout<<"Baton Rouge, Louisiana, flower Magnolia, Bayou State"<<endl;
else if(shipping price >=$65)
cout<<"Nashville, Tennessee, flower Iris, Volunteer State"<<endl;
int x;
cin>> x;
return 0;
}
|
First,
if
isn't If. Second, you are using undeclared variables, the "shipping price", plus a variable name can't have blank spaces.
Third, you are using "shipping price >=$15". The compiler isn't up to date on the world's finances, and won't understand "$" as a notation for money. You have to use 15 only.
Fourth, you are using several if... else if then if.... else if. You should use one if, and the rest else if, and an else.
Fifth, int x; cin >>x; For what? If you want to pause the program then use system("pause") (ONLY if you aren't distributing this code). Otherwise use an ininite loop, such as:
Hope I helped.