Question: c programming Task 11.1 - Example Program Program 11.1.c is a menu driven C program based on dynamic memory allocation. On start, this program displays

c programming

c programming Task 11.1 - Example Program Program 11.1.c is a menudriven C program based on dynamic memory allocation. On start, this program

Task 11.1 - Example Program Program 11.1.c is a menu driven C program based on dynamic memory allocation. On start, this program displays the following menu 1- Add new item 2- Display items 3. Delete 4. Quit When option 1 is selected, the program reads an integer and store it. When option 2 is selected, the program displays all the stored integers. When option 3 is selected, the program reads an integer and searches for it in the previously stored integers, if found deletes it from the list. When option 4 is selected, the program closes. The program displays the menu repeatedly until option 4 is selected. The program has been designed to store any number of integers. Task 11.2 Rewrite tasks 11.1 by enabling the program to store a structure instead of integer. The structure to be of the following type struct student char name[10]; char id[10] char address(100); .NE. The program should allow the following four options 1. Add new student 2. Display all students Delete student by Id 4. Delete student by Name Quit When option 3 is selected, the program should read a student Id and search for that is in the stored list of student details. If found, that student record should be deleted. Similar approach is to be taken for option 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!