Write a statement that increments (adds 1 to) one and only one of these five variables : reverseDrivers parkedDrivers slowDrivers safeDrivers speeders . The variable speed determines which of the five is incremented as follows: The statement increments reverseDrivers if speed is less than 0 , increments parkedDrivers if speed is less than 1 , increments slowDrivers if speed is less than 40 , increments safeDrivers if speed is less than or equal to 65 , and otherwise increments speeders .

LANGUAGE: C++

CHALLENGE:

Write a statement that increments (adds 1 to) one and only one of these five variables : reverseDrivers parkedDrivers slowDrivers safeDrivers speeders . The variable speed determines which of the five is incremented as follows: The statement increments reverseDrivers if speed is less than 0 , increments parkedDrivers if speed is less than 1 , increments slowDrivers if speed is less than 40 , increments safeDrivers if speed is less than or equal to 65 , and otherwise increments speeders.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,