πŸ’» Activity 4.2: Solving an Old School Punishment With a New Trick#

In high school, the teacher wants to give the class clown a lesson. The teacher tells the class clown to write β€œI will not text jay in spanish class.” 100 times. The teacher removes all possibilities of copy and paste from your computer. Write a script using dynamic programming concepts that still makes it easy to output the required text the appropriate number of times.

  1. β€œI will not hide 250 rubber ducks in math class.” (250 times)

  2. β€œI will not cheat off of Sarah and Tom in ENGR131 class.” (101 times)

Your function goes here

...

β€œI will not text jay in spanish class.” (100 times)

...

β€œI will not hide 250 rubber ducks in math class.” (250 times)

...

β€œI will not cheat off Sarah and Tom in ENGR131 class.” (101 times)

...