Answer:
The output file is given below.
Step-by-step explanation:
Please visit gotit-pro.com to get complete working code.
3.6m questions
4.7m answers