Respuesta :
Answer:
It looks as if you are in one of the COMSC 075 classes at the school where I teach -- this is one of your assignments.
If you copy and paste someone’s answer, all you learn is how to copy and paste. That may get you through the course with a passing grade, but when you are on the job and get to your first code review and someone asks you why you decided to code something one way instead of another -- you’ll be stuck, because you will have no idea why your copy-and-pasted code works (or doesn’t).
If you’re having trouble understanding how to approach the problem, contact one of the instructors so you can write the program yourself and understand what it’s doing. We’re available online for office hours via video conference. Just ask!
Explanation: