Direction: Design, develop and implement a menu driven program in C for the following Array operations: a. Creating Array of N Integer elements b. Display of Array elements with suitable headings. c. Inserting an element (ELEM) at a given valid position (POS). d. Deleting an element at a given valid position (POS). е. Еxit NOTE: An Array is a collection of similar/same elements. This activity, the Array can be represented as one / single dimensional elements. Menu driven program in C language to perform various array operations are implemented with the help of user defined functions such as: a. create() b. display() c. insert() d. del() е. exit() Algorithm: 1. Start 2. Read N value 3. Read array of N integer elements 4. Print array of N integer elements 5. Insert an element at given valid position in an array. 6. Delete an element at given valid position from an array. 7. Stop

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

the  output must same to the sample output. 

Direction: Design, develop and implement a menu driven program in C for the following
Array operations:
a. Creating Array of N Integer elements
b. Display of Array elements with suitable headings.
c. Inserting an element (ELEM) at a given valid position (POS).
d. Deleting an element at a given valid position (POS).
е. Еxit
NOTE: An Array is a collection of similar/same elements. This activity, the Array can be
represented as one / single dimensional elements. Menu driven program in C language to
perform various array operations are implemented with the help of user defined functions
such as:
a. create()
b. display()
c. insert()
d. del()
е. exit()
Algorithm:
1. Start
2. Read N value
3. Read array of N integer elements
4. Print array of N integer elements
5. Insert an element at given valid position in an array.
6. Delete an element at given valid position from an array.
7. Stop
Sample Output:
--Menu-----
1.Create
2.Display
3. Insert
-Menu--
1.Create
2.Display
3.Insert
4.Delete
5.Exit
Enter your choice:
Enter the size of the array elements: 5
Enter the elements for the array:
10
4.Delete
5.Exit
Enter your choice:
Enter the position for the new element:
Enter the element to be inserted:
1
3
90
20 30
40
50
--------Menu--
1.Create
2.Display
3. Insert
--------Menu-----
1.Create
2.Display
3. Insert
4.Delete
5.Exit
4.Delete
5.Exit
Enter your choice:
2
Enter your choice:
The array elements are:
20
The array elements are:
10
20
90
30
40
50
10
30
40
50
-Menu-
-Menu----
1.Create
1.Create
2.Display
3. Insert
4.Delete
2.Display
3. Insert
4 Delete
5. Exit
Enter your choice:
5.Exit
Enter your choice:
Enter the position of the element to be deleted:
The deleted element is =
4
5
50
--------Menu-----
1.Create
2.Display
3. Insert
4.Delete
5.Exit
Enter your choice:
2
The array elements are:
20
90
10
30
40
Transcribed Image Text:Direction: Design, develop and implement a menu driven program in C for the following Array operations: a. Creating Array of N Integer elements b. Display of Array elements with suitable headings. c. Inserting an element (ELEM) at a given valid position (POS). d. Deleting an element at a given valid position (POS). е. Еxit NOTE: An Array is a collection of similar/same elements. This activity, the Array can be represented as one / single dimensional elements. Menu driven program in C language to perform various array operations are implemented with the help of user defined functions such as: a. create() b. display() c. insert() d. del() е. exit() Algorithm: 1. Start 2. Read N value 3. Read array of N integer elements 4. Print array of N integer elements 5. Insert an element at given valid position in an array. 6. Delete an element at given valid position from an array. 7. Stop Sample Output: --Menu----- 1.Create 2.Display 3. Insert -Menu-- 1.Create 2.Display 3.Insert 4.Delete 5.Exit Enter your choice: Enter the size of the array elements: 5 Enter the elements for the array: 10 4.Delete 5.Exit Enter your choice: Enter the position for the new element: Enter the element to be inserted: 1 3 90 20 30 40 50 --------Menu-- 1.Create 2.Display 3. Insert --------Menu----- 1.Create 2.Display 3. Insert 4.Delete 5.Exit 4.Delete 5.Exit Enter your choice: 2 Enter your choice: The array elements are: 20 The array elements are: 10 20 90 30 40 50 10 30 40 50 -Menu- -Menu---- 1.Create 1.Create 2.Display 3. Insert 4.Delete 2.Display 3. Insert 4 Delete 5. Exit Enter your choice: 5.Exit Enter your choice: Enter the position of the element to be deleted: The deleted element is = 4 5 50 --------Menu----- 1.Create 2.Display 3. Insert 4.Delete 5.Exit Enter your choice: 2 The array elements are: 20 90 10 30 40
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education