haha,you to learn it out yourself step by step.but i will help you this time.
/Given the number of commodities bought, create a program that computes the
total amount purchased in a fast food center. Assume that the following unit
price of each commodity/
int a,b,c,d; //a=Fried Chicken,b=Cheese Burger,c=French Fries,d=Soft Drinks//
float total; //total price for all commodity//
cout<<"Enter the number of commodities bought."<<endl;
This is 1 of the solution for your question. But i believe there is other way.