Here’s a working program … this one starts on the right side and scrolls left for better readability…