Whats wrong with this program!!!!

I wrote this program but it is giving me error.Please review it and tell me whats wrong:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//This program will calculate the total price of meat of a resturant and will determine that with 
//which gift the customer should be serverd
#include<iostream>
using namespace std;

int main(){
    //declaring variables
    
    int count=1;
    float price,salestax,total,grandtotal=0;
    char selection;
    
    //starting do-while loop that will restart the program if needed
    //and will count the customers
    do{
          cout<<"+++++Virtual Resturant+++++";
          cout<<"Please enter the price of the meal: ";   //prompt the user to enter the price of meal
          cin>>price;
          
          //using if statement to determine the amount of sales tax
          if(price<=1000){
                              salestax=0;
                              }
          if(price>1000&&price<=2000){
               salestax=(1/100)*price;
               }
          if(price>2000){
               salestax=(2/100)*price;
               }
          //Calculate the total price and display it on the screen
          total=price+salestax;
          cout<<"Price of the Meal: "<<price<<endl;
          cout<<"Sales tax: "<<salestax<<endl;
          cout<<"-----------------------------"<<endl;
          cout<<"Total Amount: "<<total<<endl;
          
          //now the if structure will determine the gift
          if(total<1000){
               cout<<"The customer should be sereved with candies."<<endl;
               }
          if(total>=1000&&total<2000){
               cout<<"The customer should be served with the Sweet Bread."<<endl;
               }
          if(total>=2000&&total<3000){
               cout<<"the customer should be served with the Pudding."<<endl;
               }
          if(total>=3000&&total<4000){
               cout<<"The customer should be served with the Cake."<<endl;
               }
          if(total>=4000){ 
               cout<<"The customer should be served with the Triffle."<<endl;
               }
          cout<<"Do you want to process another customer?"<<endl;
          cout<<"enter 'Y' for yes or 'N' to exit: "<<endl;
          cin>>selection;
          
          count=count+1;
          grandtotal=grandtotal+total;
          }
          while(selection=='Y'||selection=='y')
          
          //now if statement will dtermine the total customers and grandtotal
          if(selection=='N'||selection=='n'){
                                             cout<<"Grand Totals: "<<endl;
                                             cout<<"Total customers: "<<count<<endl;
                                             cout<<"Total amount for all bills: "<<grandtotal<<endl;
                                             }
           
               
system("PAUSE");
return 0;
}
You're missing a semicolon on line 60. Happy programming!

-Albatross
Topic archived. No new replies allowed.