You are on page 1of 2

cc#include<iostream.

h>
void main()
{ char ans;
char category,services,type-of_services,customer_category;
float price;
int no_vip,no-regular,no_vip,total-regular,total_vip,total-all;
cout<<"Please enter 'Y' to continue and 'N' to end";
cin>>ans;
switch(category)
{
case'V':cout<<"enter type of services('S'/'B'/'F')";
cin>>services;
{ if(services=='S')
{new_price=300*0.85;}
else
if(services=='B')
{new_price=250*0.85;}
else
if(services=='F')
{new_price=200*0.85;}
no_vip++;
total_vip+=new_price;
break;
case'R':cout<<"enter type of services('S'/'B'/'F')";
cin>>services;
{ if(services=='B')
{new_price=200*0.90;}
else
if(services=='F')
{new_price=150*0.90;}
no_regular++;
total_regular+=new_price;
break;
default:cout<<"enter V or R only";
}
cout<<customer_category;
cout<<type_of_services;
cout<<new_price;
cout<<"Please enter 'Y' to continue or 'N' to end;"
cin>>ans;
total_all:total_vip + total_regular;
cout<<no_vip;
cout<<no_regular;
cout<<total_vip;
cout<<total_regular;
cout<<total_all;
}
}