Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this project you will create a program that will test the users proficiency at solving different types of math problems. The program will be

For this project you will create a program that will test the users proficiency at 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 program will also keep statistics on how many problems were answered correctly.

This week you will continue with the project by adding the Subtraction, Multiplication and Division functions. In order to test the menu function completely we needed to write all of the functions. The addition should be working but the remaining functions are empty. These empty functions are called blackboxes.

So now lets add the code for the remaining functions. Pay particular attention to the division function. You will want to do only integer division showing the answer and remainder back to the user. Prompt the user for both the answer and remainder for all division problems. Use the Modulus operator to calculate the correct answer and remainder. Also include logic to make the numerator the larger of the two numbers to avoid answers less than 1.

Example:

image text in transcribed

CAUsesljlabudziklDesktoplcis126\CIS2261ProjectUnit2.exe Math Practice Program Main Menu 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Exit select an option: 4 34 19? Enter answer 1 Enter any remainder 12 Sorry, Incorrect 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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions