Hey guys its my last program I have to make for the year and it is due next tuesday, but I have no clue how to program this.
The language is in just plain C.
Heres the full problem:
(a) Typedef a structure that can be used to represent a node in a linked list. The structure data_node has the following components:
1. Last_name (25 characters)
2.hourly_wage
3. a pointer to struct data_node
(b) Write a print_function which prints out the last_name and hourly_wage of each node in the linked list it is passed.
(c) Write an add_function which adds a new node to the end of the list. It is passed the last_name and hourly_wage for the new node.
(d) Write a delete_function which deletes the node which has the last_name equal to the string input passed to the function with the linked list. If it can't find the last_name it prints out "Not Present"
(e) Write find_function which finds the first node which was the hourly_wage value passed in the function to find_function. If it can't find the hourly_wage value then it prints out "Cannot Find". If it finds the hourly_wage it prints out the last_name and the hourly wage. (You must pass the list also.)
I know its a pretty big problem but my teacher said the code will be really short, so if i could get any help at all it would be great. Feel free to use different variable names but just let me know
I can also pay 250,000 nps to someone if they help me with a majority of it.