0
What is the solutoin
Air has 15 aircraft company .The observer registration of passengers on a daily basis and store them in Mcefovh.hnak two types of aircraft, one of the businessmen pay passenger 25000 and other ordinary tourist passenger plane pay 10,000 .almtalob Calculate the daily profits of the company and the rate of passengers in both planes to use a code of A partial program to calculate the passenger rate per aircraft
4 Answers
+ 1
Please show us your attempt.
+ 1
int A[50],B[50],Sum,sum1=1,sum2=1, x, y;
cout<<"Enter the number of business jets" ;
cin>>x;
For(int i=1;i<=x;i++)
{
cout<<"Enter the number of passengers"<<i ;
cin>>A[i] ;
sum1=sum1*25000;
}
cout<<Enter the number of tourist aircraft;
cin>>y;
for(int j=1;j<=y&&y<15-x;j++)
{cout<<"Enter the number of passengers" <<j;
cin>>B[j] ;
sum2*=10000;
}
sum=sum1+sum2;
cout<<"General profits of the company" <<sum;
As for the average passenger in each plane I did not try it
0
Diego Acero I tried a lot but did not get the solution
0
Anas Can you show us what you tried?