X434: Review - Circuit

The circuit() method is intended to take the distance a person has moved on a circuit (a track) and translate it into the position they would be at, regardless of how many times they've gone around. If the input n is the number of yards traveled, and the circuit itself is 198 yards in circumference (labeled 0 to 197), which of the following would correctly complete the method?

public int circuit(int n) {
    int location = ____;
    return location;
}

Your Answer:

Select one answer:


Practice a different exercise

Feedback

Your feedback will appear here when you check your answer.