1. RefactoringChapter 9Simplifying Conditional Expressions 2. Read thisand then read thisDecompose Conditionalif (date.before (SUMMER_START) || date.after(SUMMER_END)) charge…