Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Are there any limitations to online documentation? Explain.

Answered: 1 week ago

Question

Describe how language reflects, builds on, and determines context?

Answered: 1 week ago