Given the variables costOfBusRental and maxBusRiders of type int, write an expression corresponding to the cost per rider (assuming the bus is full). (Do not worry about any fractional part of the expression–let integer arithmetic, with truncation, act here.)
LANGUAGE: JAVA
CHALLENGE:
Given the variables costOfBusRental and maxBusRiders of type int, write an expression corresponding to the cost per rider (assuming the bus is full). (Do not worry about any fractional part of the expression–let integer arithmetic, with truncation, act here.)
SOLUTION:
costOfBusRental / maxBusRiders