i need help wit the logic to write the program.
Design an algorithm that takes an array of five (5) double data type elements, which represent exchange rates (e.g. U.S. Dollar->E.U. Euro), and use a switch statement to display/output that number. Use a random number function in C (this will require the randomize() function too) to pick what case to use.