You are required to develop a program in C that will simulate a mathematics quiz game. The game will include various features, cach of which must be incorporated into your program. Your program should be menu-driven and must display a main menu when run. The menu should include the following options: 1. Enter the number of questions to be asked for this round of the quiz (maximum of 5 questions allowed). 2. Start and play quiz 3. Display the number of questions that were answered (i) correctly and (ii) incorrectly for this round. 4. Exit Program Features to include: Your program should continually run and re-display the main menu after cach option has completed, i.e., start over again. Only when the customer enters option 4 (i.e., Exit Program), should your program terminate. 1. For option 2, your program should display a simple mathematical question and ask the user to enter the answer. After the user has entered their answer, your program should display the correct answer beside the user's answer. Your program should then ask the next question (if there are more to ask) and continue this sequence. 2. For example: Question 1:9/3+6-? You entered: 6- Wrong ! The correct answer: 9 Option 3 should onlv be allowed to be selected after the user selects option 2 program should display the correct answer beside the users answer. 1our program should then ask the next question (if there are more to ask) and continue this sequence. For example: c code with comments Question 1: 9/3+6=? 6. You entered: 6- Wrong !! The correct answer: 9 Option 3 should only be allowed to be selected after the user selects option 2 3. (i.e., plays the quiz). If the user starts a new quiz, option 3 should be reset from the previous round (i.e., Do not count correct & incorrect answers for all rounds). 4. Try to take account of input errors by the user and display appropriate error messages.
You are required to develop a program in C that will simulate a mathematics quiz game. The game will include various features, cach of which must be incorporated into your program. Your program should be menu-driven and must display a main menu when run. The menu should include the following options: 1. Enter the number of questions to be asked for this round of the quiz (maximum of 5 questions allowed). 2. Start and play quiz 3. Display the number of questions that were answered (i) correctly and (ii) incorrectly for this round. 4. Exit Program Features to include: Your program should continually run and re-display the main menu after cach option has completed, i.e., start over again. Only when the customer enters option 4 (i.e., Exit Program), should your program terminate. 1. For option 2, your program should display a simple mathematical question and ask the user to enter the answer. After the user has entered their answer, your program should display the correct answer beside the user's answer. Your program should then ask the next question (if there are more to ask) and continue this sequence. 2. For example: Question 1:9/3+6-? You entered: 6- Wrong ! The correct answer: 9 Option 3 should onlv be allowed to be selected after the user selects option 2 program should display the correct answer beside the users answer. 1our program should then ask the next question (if there are more to ask) and continue this sequence. For example: c code with comments Question 1: 9/3+6=? 6. You entered: 6- Wrong !! The correct answer: 9 Option 3 should only be allowed to be selected after the user selects option 2 3. (i.e., plays the quiz). If the user starts a new quiz, option 3 should be reset from the previous round (i.e., Do not count correct & incorrect answers for all rounds). 4. Try to take account of input errors by the user and display appropriate error messages.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
i need the answer quickly
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 6 steps with 5 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY