Suppose we wish to process survey results that are stored in a file. This exercise requires twoseparate programs. First, create a program that prompts the user for survey responses and outputseach response to a file. Use an ofstream to create a file called "numbers.txt". Then create a program to read the survey responses from "numbers.txt". The responses should be read from the
file by using an ifstream. Input one integer at a time from the file. The program should continueto read responses until it reaches the end of file. The results should be output to the text file "output.txt".
Contents of numbers.txt = 5 3 7 2 8 6 9 5 4 2 1 2 8 10 4 9 8 2 1 3 7 5 6 8 4 3 8 2 1
Contents of output.txt =
Number of 1 responses: 3
Number of 2 responses: 6
Number of 3 responses: 3
Number of 4 responses: 4
Number of 5 responses: 4
Number of 6 responses: 2
Number of 7 responses: 3
Number of 8 responses: 5
Number of 9 responses: 2
Number of 10 responses: 2
Full Rating to whoever can give me the comilable code in C++ so that it gives the output shown above.