2. Create a C++ program that converts the number of Americandollars entered by the user into one of the following foreigncurrencies: Euro, British pound, German mark, or Swiss franc. Allowthe user to select the foreign currency from a menu. Store theexchange rates in a four-element double array named rates. Noticethat the menu choice is always one number more than the subscriptof its corresponding rate. For example, menu choice 1's rate isstored in the array element whose subscript is 0. Below is thesample run of the program.