Hi, I have an exercise for my programming class I, which I already started, but I am stuck in a part that I need help with. I will attach the exercise, and how my code is until the part I got stuck.


Hi, I have an exercise for my programming class I, which I already started, but I am stuck in a part that I need help with. 

I will attach the exercise, and how my code is until the part I got stuck. 

If someone can complete the code and help me understand it, i will appreciate it.