Question
1) Add a delete function in equipment.c that deletes an equipment from the list. The function should delete an equipment by its type and description.
1) Add a delete function in equipment.c that deletes an equipment from the list. The function should delete an equipment by its type and description. Type and description will be entered by the user. The function should have the following prototype: struct equipment* delete_from_list(struct equipment *list);
2) Modify the append_to_list function so an equipment is inserted into an ordered list (by type, then by description) and the list remains ordered after the insertion. For example, dumbbell should be before stability ball in the list; stability ball, large should be before stability ball, small in the list.
Here's what I have so far. This is somehow not letting me append anything to the program.. please help!
#include
Step 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