• Write a program that performs a calculation and assigns the results to a category, then verify its
correctness with test cases.
Your Goal
In this project, you are going to write a program that performs a calculation. Then the program assigns
the result to one of at least three categories. You will test your program by writing test cases that
thoroughly test your program.
Here is an example test idea for your program and its categories.
• Calculate the average length of words in a paragraph. Based on the result, assign a readability level
based on your own criteria. For example, if the average word length is less than 5, assign "Easy." If
the average is 5 to 7, assign "Medium." If the average is over 7, assign "Difficult." Popular
readability assessment algorithms such as the Flesch-Kincaid formula are usually a but more complicated but can be researched to give you ideas