Heloo ppl...( Politeness helps...)

I have an Xam due in 15 hrs....Need help...No Teachers \Instructors\Guides to help us poor Open University Students in India....so guys have Pity..and spare 2 mins for this Unfortunate Soul.. dont need entire Code Listings or anything....just Concice 2 the point Ideas on how 2 deal wid the probs...


Prob.1

design a CD Library System which has many CDs Availible. There may be multiple CDs fr a particular topic. rents r on a Daily Basis. some Special Cutomers get a 10% Rebate on Rental. Make suitable assumptions if any. ( Time limit 20-25 mins)

Ans( or what I think is one..):

IMHO...there needs 2 b a File Read/Write Code in this prob...so

And I dont think V can establish Relationships in C++...( in 25 mins .. ??)


Class Movie
{
int MID;
char Name[];
int copies;

public:
void putdata(){..//cout all the member data}
void getdata(){..//cin all the member data}

}

Class Customer
{
char name[];char address[];
puvblic:
void putdata(){..//cout all the member data}
void getdata(){..//cin all the member data}
}
const int Rate=80
// Rental is 80 Rs / Day...assumption..or 80c..for..American ppl
Class Rental
{
Customer c1;
Movie m1;
int days;
int Rent=0;

public:
void putdata()
{
c1.putdata()
m1.putdata()
cout<<rent;
}

void getdata()
{
c1.getdata();
m1.getdata();
cin>>days;
rent=days*Rate; /*we can do the checking for our Special Rebate Customers here..and calculate likewise*/

}

};

void main()
{
Rental r1;
fstream f1;

do{
r1.getdata();
f1.open("test.Dat",ios::app,ios:ut);
f1.write((char*)&r1,sizeof(r1));
char x;cout<<"Enter more rentals?";cin>>x
}
while(x=='y')

}



ok guys..this was my effort....so pleaspleaseplease....any help on this...