Question: using C, please help me with this hwk asap!!!! Directions: Complete the following lab assignment using the description given in each section. Be sure to

using C, please help me with this hwk asap!!!!

using C, please help me with this hwk asap!!!! Directions: Complete thefollowing lab assignment using the description given in each section. Be sure

Directions: Complete the following lab assignment using the description given in each section. Be sure to comment your program; otherwise you ray lose up to 5 points. You must use proper indent styles; otherwise you may lose up to 5 poi Submission information: Submit this assignment by following the instructions given by your lab assistant . Not doing so WILL result In a zero, no exceptions Description: Use the following structure: typedef struct word char word[10]: struct word * nextWord: struct wordprev Word; Word: You will be implementing the undo and redo functionality, although it will be clunky. You will input a word at a time to form a sentencethen have the option to undo and redo the last word put in. For this lab, you will only have to redo the last word that is undone. See the sample output for more details. This functionality is in the form of a stack. list are Be sure to pay close attention to where the pointers are referencing, and make sure pointers in the pointing to the correct nodes. You also must error check thoroughly so that the user doesn't accidentally break anything. Your TA should not be able to break your code simply by navigating the menu options however they please. Function Prototypes Word addWord(Word last Word, Word new Word); This function adds the newest word to the stack of words. The last word passed into this function is the top of the stack. Return the newest top of the stack after the new word is added. NOTEthis function will also be used to implement the redo functionality . void printSentence Word last Word); Prints out the sentence as one would read it. Be careful! The last word (the top of the stack) is the parameter to this function, not the first. Void freeSentence( word* last Word); Frees every word in the sentence, starting with the last word entered. Word undoWord(Word* * last WordPtr); Takes out the last word entered from the stack, and returns it. The stack must be updated to have a new top

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!