السلام عليكــم ورحمـة الله وبركاتــه ،،
أخواني واخواتي أرجو منكم تصحيح أخطاء ان وجد
Display the delivery_date given the booking number.
Display the most popular car (Depending on the booking)
هذا ما اعرف شو طلب خاصه السوال الثاني
اما السوال اول تم حل بس تريد تصحيح أخطاء ان وجد موجود في كود بس ما اعرف أذا صح او غلط
لو سمحتوا بنتظار ردوردكم
{
/
}
void discount ()
{
double Dis=(3* CarPrise)/100;
CarPrise-=Dis;
}
};
void main()
{
cars c[5];
for(i=0;i<5;i++);
cars ob(Toyota,90,"HHH",5000);
c=ob;
for(i=1;i<5;i++);
cars ob(Honda,91,"LLL",3000);
c=ob;
` for(i=2;i<5;i++);
cars ob(BMW,80,"PPP",1500);
c=ob;
for(i=3;i<5;i++);
cars ob(Nasan,2009,"AAA",30000);
c=ob;
for(i=4;i<5;i++);
cars ob(MAX,99,"AAA",1000);
c=ob;
booking b[5];
for(i=0;i<5;i++);
booking ob(22,Toyata,6/10,10/may);
b=ob;
for(i=1;i<5;i++);
booking ob(1,Honda,10/10,13/may);
b=ob;
for(i=2;i<5;i++);
booking ob(21,BMW,12/10,14/may);
b=ob;
for(i=3;i<5;i++);
booking ob(54,Nasan,3/10,5/may);
b=ob;
for(i=4;i<5;i++);
booking ob(88,MAX,5/10,9/may);
b=ob;
char bn;
for (i=0,i<5,i++)
if(b.booking=bn);
cout<<" bdelivery_data is :";
ob.discount(3%);
}
