In order to plan road maintenance, the department of Road Works request that roa
ID: 3906363 • Letter: I
Question
In order to plan road maintenance, the department of Road Works request that road usage must be determined This is done by counting the number of vehicles using the road with two wheels, four wheels and more than four wheels respectively Write down ONLY the necessary switch statement to count the number of vehicles with two wheels, four wheels and more than four wheels Do NoT write a complete program Use the following variables ant nrWheels, // number of wheels of a vehicle using the road int countTwo, count tFour, countMore, I/ the counters for the // number of vehucles with // two, four and more than // Eour wheels respectively ITURN OVER) YAExplanation / Answer
switch(nrWheels) { case 2: countTwo++; break; case 4: countFour++; break; default: countMore++; break; }