C++ ONLINE SHOPING STORE
Program
#include<iostream>
using namespace std;
int main()
{
cout<<"\t\tWELLCOME TO CYCLE ONLINE SHOPING"<<endl;
cout<<"price of bicycle is 20.5$ \nprice of motorcycle is 50.5$"<<endl;
int phone,e,u,r,j;
string name,address,email,i;
float q=20.5,k=50.5,bill;
cout<<"Name:";
cin>>name;
cout<<"Phone:";
cin>>phone;
cout<<"Address:";
cin>>address;
cout<<"Email:";
cin>>email;
cout<<"Type of cycle\n1 for bicycle\n0 for motorcycle:";
cin>>e;
cout<<"Item Quantity:";
cin>>u;
if(e==1)
cout<<"Bill="<<q*u<<endl;
else if(e==0)
cout<<"Bill="<<k*u<<endl;
else
{
cout<<"Wrong input";
}
cout<<"\nDo you follow the methord of COD(Cush on delivery)\n1 for Yes\n0 for no:";
cin>>j;
if(e==1)
cout<<"\nyou item is sent you with in 2 Days:" ;
else if(e==0)
{
cout<<"\nenter a credite card no:";
cin>>r;
if(r>=0)
cout<<"\nyou item is sent you with in 2 Days:" ;
}
else
cout<<"Wrong input";
cout<<"\nFeed Back";
cout<<"\nDo you like over services(y/n):";
cin>>i;
cout<<"\t\tTHANKYOU FOR SHOPING";
}
Comments
Post a Comment