#Include
#include
#include
main()
{
char ch;
string miKind,miName,CsName;
int FnAmount , ndays;
cout<<"Please Provide Customer Name:\n";
cin>>CsName;
cout<<"\nEnter the movie Discription\n";
cin>>miName;
cout<<"Enter 'R' for Regular Movie\n";
cout<<"Enter 'C' for children Movie\n";
cout<<"Enter 'N' for New Released Movie.\n";
cout<<"Enter 'E' for English Movie.\n";
cin>>ch;
cout<<"Please provide folowing informatuion:\n";
cout<<"Movie Name\n";
cout<<"Number of Days\n";
cin>>ndays;
if(ch=='R')
{
FnAmount=48*ndays;
miKind="Regular";
}
else if(ch=='C')
{
FnAmount=30*ndays;
miKind="Children"
}
else if(ch=='N')
{
FnAmount=100*ndays;
miKind="New Release";
}
else if(ch=='E')
{
FnAmount=50*ndays;
miKind="Regular";
}
else
{
cout<<"Invalid Entry";
}
cout<<"..................................................\n";
cout<<"Customer Name: "<<<"\n";
cout<<"Movie type :"<<<"\n";
cout<<"Movie Name"<<<"\n";
cout<<"Number of Days"<<<"\n";
cout<<"Your Rental Amount is : "<<<"/n";
cout<<"..................................................\n";
}
0 comments:
Post a Comment