switch(stateCode){ case 'MO': taxPercentage=1.0; statePercentage=1.5; break; case 'OR': case 'MA': case 'WI': taxPercentage=3.5; statePercentage=0.5; break; case 'CA': case 'NY': case 'VT': statePercentage=2.6; taxPercentage=4.5; break; case 'TX': taxPercentage=3.0; break; default: taxPercentage=2.0; statePercentage=2.3; }