Advertisement

Solution of Cs201 fall 2009

#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: "<
cout<<"Movie type :"<
cout<<"Movie Name"<
cout<<"Number of Days"<
cout<<"Your Rental Amount is : "<
cout<<"..................................................\n";
}
get help if u do not understand.

ACADEMIC CALENDAR (YEAR 2009)

FALL 2009
Fall 2009 Semester (Commencement of semester)September 28, 2009
Allama Muhammad Iqbal Day (Holiday)November 9, 2009
*Eid ul-Azha "Feast of the Sacrifice" (Holiday)November 28-December 01, 2009
Mid term examination (fall 2009)December 02, 2009
Quaid-e-Azam's Birthday (Holiday).December 25, 2009
*Ashoura (Holiday).December 28-29, 2009
Resumption of classes after Mid Term Exam-Fall 2009December 30, 2009
Kashmir Day (Holiday)February 5, 2010
Final Term Examination (Fall 2009)February 22, 2010
*Eid-e-Milad-un-Nabi (Birth of Prophet)February 27, 2010
Spring 2010 (Commencement of semester)April 05, 2010
*subject to moon appearance