Answer:
int main()
{
int x,y;
bool b1, b2;
cout<<"enter values of x : ";
cin>>x;
cout<<"enter values of y : ";
cin>>y;
b1 = y > x; // false
b2 = x > y; // true
cout << "b1 is = " << b1 << "\n";
cout << "b2 is = " << b2 << "\n";
if (b2)
cout<<endl << "Larger Number" << "\n";
else
cout << "Smaller Number" << "\n";
return 0;
}
Hey there! Hello!
The answer to this problem will be D, "All Of The Above." I've attached a picture that shows the Shape Format tab in Microsoft Word. You can see in the dropdown that there's options for all three of your listed choices: Shape Fill, Shape Outline, and Shape Effects.
I hope this helped you out! Feel free to ask me any additional questions if you have any. :-)
Answer:
int costOfBusRental;
int maxBusRiders;
int costPerRider;
costPerRider = costOfBusRental/maxBusRiders;
Explanation:
The costPerRider is the total cost of renting the bus (costofBusRental) divided by all the bus users (maxBusRiders). So we declare the three variables to be of type int as required by the question.