I need help with the question ASAP please
here's the question

Write a C program to create and manipulate a one dimensional array (list) of up to a hundred sorted ( ascending order) numbers by using functions to insert, remove, or print elements as follows:
Function insert : will search for the appropriate position of a given element and if the element is already in the list will display an error message. If not, the function will shift all the elements starting from the position of the element to the right of the array and then insert the element into that position.
Function remove: will search for the element to be removed and if not found will display an error message. If the element exists, the function will remove it and shift all the elements that follow it to the left of the array.
Function print: will print the elements that exist in the array at that point.
Your program should display a menu to the user that allows him/her to insert, remove, or print as many elements as they want until they want to stop. If an element is inserted into an already full list, an error message should be displayed. The array (list) at the beginning should be empty.

Here's the work i've done so far

#include <stdio.h>
#define size 100
void insert (int[],int);
void remove (int[],int);
void print (int[],int);
int main()
 int choice,i;
 int list[size];
     printf("Enter your choice\n\n");
         case 1:
         case 2:
         case 3:
         printf("Have a nice day\n");
 return 0;
void insert (int a[],int s)
    int i,j,temp;
    printf("Enter element to insert\n");
    printf("Element %d is inserted\n",a[i]);

This code does nothing. Don't expect help until you post code that at least approximates a solution to the problem at hand!

This article has been dead for over six months. Start a new discussion instead.