C CODE: create a program that will test the user’s proficiency in solving different types of math problems. The program will be menu-driven. The user will select either addition, subtraction, multiplication, or division problems. The program will then display a problem, prompt the user for an answer, and then check the answer displaying an appropriate message to the user whether their answer was correct or incorrect. The user will be allowed 3 tries at each problem. The program will also keep statistics on how many problems were answered correctly.  add functions to allow the user to select problems of varying degrees of difficulty In the next Week, you'll need to add functionality to also keep statistics on the number of correct answers vs. the total number of problems attempted.   So now let’s add the code for the remaining functions: We’ll start by inserting code to ask the user if they want to see problems that are easy, medium, or difficult.  We’ll do this by prompting them to enter ‘e’ for easy, ‘m’ for medium or 'd’ for difficult and we’ll do this right after they have selected the type of problems they want.  We will also add a validation loop that will check to see if they entered a correct response (e,m, or d).  Easy – problems using numbers 0 thru 10 Medium – problems 11 thru 100 Difficult – problems 100 – 1000

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...
icon
Related questions
Question

C CODE: create a program that will test the user’s proficiency in solving different types of math problems. The program will be menu-driven. The user will select either addition, subtraction, multiplication, or division problems. The program will then display a problem, prompt the user for an answer, and then check the answer displaying an appropriate message to the user whether their answer was correct or incorrect. The user will be allowed 3 tries at each problem. The program will also keep statistics on how many problems were answered correctly. 

add functions to allow the user to select problems of varying degrees of difficulty In the next Week, you'll need to add functionality to also keep statistics on the number of correct answers vs. the total number of problems attempted.

 

So now let’s add the code for the remaining functions:

We’ll start by inserting code to ask the user if they want to see problems that are easy, medium, or difficult.  We’ll do this by prompting them to enter ‘e’ for easy, ‘m’ for medium or 'd’ for difficult and we’ll do this right after they have selected the type of problems they want.  We will also add a validation loop that will check to see if they entered a correct response (e,m, or d). 

  • Easy – problems using numbers 0 thru 10
  • Medium – problems 11 thru 100
  • Difficult – problems 100 – 1000

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 9 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY