Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started