Write a program that reads and prints a joke and its punch linefrom two different files. The first file contains a joke, but notits punch line. The second file has the punch line as its lastline, preceded by “garbage.†The main function of your programshould open the two files then call two functions, passing each onethe file it needs. The first function should read and display eachline in the file it is passed (the joke file). The second functionshould display only the last line of the file it is passed (thepunch line file). It should find this line by seeking to the end ofthe file and then backing up to the beginning of the last line.Data to test your program can be found in the joke.txt andpunchline.txt files. the programming language is c++