def generateQuarterAndFilename(quarterValue):
    """Return quarter and filename.

    Args:
        quarterValue:the quarter_value in crawler.config
    Returns:
        quarter str and filename str

    """
    year = quarterValue[0:4]
    quarterSwitcher = {
        "1": "Summer",
        "2": "Fall",
        "3": "Winter",
        "4": "Spring",
    }
    schoolSwitcher = {
        "1": "Foothill",
        "2": "De Anza",
    }
    school = schoolSwitcher.get(quarterValue[5], "")
    quarter = quarterSwitcher.get(quarterValue[4], "")
    if quarter == "Summer":
        year = str(int(year)-1)
    quarterOutput = year + " " + quarter + " " + school
    if school == "De Anza":
        school = "De_Anza"
    fileNameOutput = year + "_" + quarter + "_" + school + "_courseData.json"
    return quarterOutput, fileNameOutput