def computeMissScore(cycles, lower, upper, full_score):
    """Computes the score depending on the number of cache misses."""

    if cycles <= lower:
        return full_score
    if cycles >= upper:
        return 0

    score = (cycles - lower) * 1.0
    range = (upper - lower) * 1.0
    return round((1 - score / range) * full_score, 1)