


Need a solution using simple C++03 and control structures only. one image shows how program should look like.
#include<iostream>
using namespace std;
int main()
{
cout<<"\tLife Boat Passenger
Manifest\n\n";
int
human,Bengal_Tigers,Spotted_hyenas,Grant_zebra,Orangutans;
cout<<"\tPlease provide the number of each
species attempting to board\n";
cout<<"\tHumans:";//Inputs for
passengers
cin>>human;
cout<<"\n\tBengal Tigers:";
cin>>Bengal_Tigers;
cout<<"\n\tSpotted hyenas:";
cin>>Spotted_hyenas;
cout<<"\n\tGrant's zebra:";
cin>>Grant_zebra;
cout<<"\n\tOrangutans:";
cin>>Orangutans;
cout<<"\n\n\tBoarding is available for
these passengers:\n";//Total basic capacity of passengers
cout<<"\n\tHumans:\t"<<4<<endl;
cout<<"\tBengal
Tigers:\t"<<2<<endl;
cout<<"\tSpotted
hyenas:\t"<<2<<endl;
cout<<"\tGrant's
zebra:\t"<<1<<endl;
cout<<"\tOrangutans:\t"<<3<<endl;
int total_weight=human*70 + Bengal_Tigers*200 +
Spotted_hyenas*65 + Grant_zebra*300 + Orangutans*45;
cout<<"\n\tThe total pasengers payload is
1245 kg (99.6%) capacity\n";
if(total_weight<1250)
cout<<"\t (For in range inputs) Total
Passenger payload is total_weight "<<total_weight<<" kg
"<<"("<<(total_weight/1250)*100<<")
Capacity\n";
if(human>4 || Bengal_Tigers>2 ||
Spotted_hyenas>2 || Grant_zebra>1 || Orangutans>3)//prints
if any out of capacity passengers
{
cout<<"\n\tBoarding is denied for these pasengers\n";
if(human>4)
cout<<"\tHumans:\t"<<human-4<<endl;
if(Bengal_Tigers>2)
cout<<"\tBengal
tigers:\t"<<Bengal_Tigers-2<<endl;
if(Spotted_hyenas>2)
cout<<"\tSpotted
hyenas:\t"<<Spotted_hyenas-2<<endl;
if(Grant_zebra>1)
cout<<"\tGrant's
zebra:\t"<<Grant_zebra-1<<endl;
if(Orangutans>3)
cout<<"\tOrangutans:\t"<<Orangutans-3<<endl;
}
}
OUTPUT:

Need a solution using simple C++03 and control structures only. one image shows how program should...