Question: Assume the variable costOfBusRental has been declared as an int and assigned the amount that it costs to rent a bus. Also assume the variable

Assume the variable costOfBusRental has been declared as an int and assigned the amount that it costs to rent a bus. Also assume the variable maxBusRiders has been declared as an int and assigned the maximum number of riders on a bus. Also assume the variable costPerRider has been declared as an int.
Write a statement that calculates the cost per rider, assuming the bus is full, and assigns the result to the costPerRider variable.
Note: Don't worry about any fractional part of the resultlet integer arithmetic, with truncation, act here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!