int main(){
char appletype;
int num,num1,num2,num3,P,J,S,C;
cout<<"Enter An Apple type"<<endl;
cout<<"P= Premium ,J= Juicy ,S= Snack C= cooking"<<endl;
cin >> appletype;
switch(appletype)
{
case'P':
cout<<"enter amount of premuim apples"<<endl;
cin>>num;
break;
case 'J':
cout<<"enter amount of juicy apples"<<endl;
cin>>num1;
break;
case 'S':
cout<<"enter amount of snack apples"<<endl;
cin>>num2;
break;
case'C':
cout<<"enter amount of cooking apples"<<endl;
cin>>num3;
break;
}
cout<<"Total amount of all apples"<<endl;
cout<<((num*.4)+(num1*.03)+(num2*.02)+(num3*.01))*1.07<<endl;
system ("pause");
return 0;}