Use an editor to create a file called product_price.txt that has two columns, where the first column records the name of products and the second column records the price of products. Insert at least 10 records in the file.
Implement a C++ program that open the file product_price.txt in input mode and another filehighest_lowest_prices.txt in output mode. If the files cannot be opened, the program should display an error message and quit program. The program should extract the first 10 records into an array of structure consisting of product name and price. After that, among the extracted records, the program should
find the two products with the highest and lowest prices, respectively, and write them into the filehighest_lowest_prices.txt in the same format as the file product_price.txt.