Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

1. Why do we do research?

Answered: 1 week ago

Question

Define procedural justice. How does that relate to unions?

Answered: 1 week ago