Question: C program :You are now allowed to use the following in additional to the techniques of the previous chapters: function prototypes functions Full math.h library

C program :You are now allowed to use the following in additional to the techniques of the previous chapters: function prototypes functions Full math.h library Random functions rand() and srand() Seed random number generator with and time() Work on format style!!! Points may be deducted for code that is not properly styled. Q1: (Menu Systems) (33 points) The C Standard library is lacking a framework for graphics programming. Therefore, many text-based applications need to be menu driven. Write a C program using functions that implement a menu system with outputs that produce the following:

My menu system 1) Run function one 2) Run function two 3) Run function three 4) Exit Choice: 1 You are inside function 1 Some random quote of your choosing My menu system 1) Run function one 2) Run function two 3) Run function three 4) Exit Choice: 2 You are inside function 2 Some random quote of your choosing My menu system 1) Run function one 2) Run function two 3) Run function three 4) Exit Choice: 3 You are inside function 3 Some random quote of your choosing My menu system 1) Run function one 2) Run function two 3) Run function three 4) Exit Choice: 4 When developing this program, you must use the following template: void displayMenu(void); void processMenuAnswer(void); void doFunction1(void); void doFunction2(void); void doFunction3(void); void printRandomMessage(void); int main(void) { srand( time(NULL) ); displayMenu(); processMenuAnswer(); return 0; } You may not add any additional code to the main function. All your code development will be in creating the functions based on the prototypes listed above. Be sure to add all needed #include directives. The phrase "Choice: " should be inside displayMenu(). The function processMenuAnswer() should call all the other function .it should use sentinel

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!