Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

At this point, you should have a working copy of the program that displays practice programs for addition, subtraction, multiplication and division. This week, you

At this point, you should have a working copy of the program that displays practice programs for addition, subtraction, multiplication and division.

This week, you will complete the application by adding functions to allow the user to select problems of varying degrees of difficulty and keep statistics on number of correct answers vs total number of problems attempted.

So now, you will add the code for the remaining functions: You will start by inserting code to ask the user if they want to see problems that are easy, medium or difficult. Next you will do this by prompting them to enter e for easy, m for medium or d for difficult and well do this right after the users have selected the type of problems they want.

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

Use an if statement to check the difficulty and generate the random numbers.

Statistics:(optional) Create two variables ttlProblems and correctAnswers. Every time the user answers a problem add 1 to ttlProblems and every correct answer add 1 to correctAnswers. You will display the total number of problems and correct answers as well as the percent correct after the user has selected the exit option on the main menu. This will complete the course project. Test it thoroughly and have someone you trust test it also. Good job!!

Step I Create a flowchart for the remaining logic described above. Step II Once you have tested flowchart create the pseudocode.

Step III Now add the additional code to your C program and test.

Copy and paste the flowchart and pseudocode into a Word document, and upload that along with the .c file containing the code and the .exe file.

Example:

image text in transcribedimage text in transcribed

CAUsers jlabudzik Desktoplcis1261 CIS2261ProjectUnit2.exe lath Practice Program Main Menu 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Exit Select an option: 1 Select difficulty level e-easy m-medium h-hard s Please enter e, m,or h h 519 + 973 ? CAUsers jlabudzikiDesktoplcis126N CIS226IProjectUnit2.exe ath Practice Program Main Menu 1. Addition 2. Subtraction 3. Multiplication . Division 5. Exit Select an option: 5 You attempted 3 problems and got 2 correct For a percentage correct of 66.67 percent Process exited after 26.61 seconds with return value 42 Press any key to continue

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

What is the purpose of a statement of cash flows?

Answered: 1 week ago

Question

=+e. Does it entertain, inform and/or engage the reader?

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

LO3 Discuss the steps of a typical selection process.

Answered: 1 week ago