Simple algorithm To Create, Insert, Delete, and Display elements in an array.
Array Algorithm Start Initialize an array arr and a variable n (number of elements). Create: Ask user for n. Read n elements into the array. Menu: Display options: Insert Delete…