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