Question: please use C language to write this code Named Constants . Define a named constant for the size of the arrays -20 . Define the
Named Constants . Define a named constant for the size of the arrays -20 . Define the exchange rate of 1.3662 as a named constant. 1 Euro- 1.3662 US dollars main0 function: a) Declare an array of typeto store up to 20 prices (dollar amount). Name this b) Dechare an thel aray of the same size an to store prices in B array store prices in Euro. Name this array price .eure c) Write a loop to partially fill array price dollar by prompting the user in a loop. Use a sentinel value-1 to stop the data entry > Store the price entered in array price dollar >Convert the price to Euro using the exchange rate- store the Euro amount in the parallel array in the corresponding index. d) Display the number of values read into the array e) Write a loop to display both arrays in 2 columns with column headers f Find the max price stored in array price.dollar After the loop, display the max in US dollar and in Euro, g) Use the sequential search algorithm to display all the prices $40 - Inform the user if search fails
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
