Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*******C++ CODE******* 1. Write a program named, mathTutor .cpp . This program will help a young math student practice the four basic operations. This program

*******C++ CODE*******

1. Write a program named, mathTutor.cpp. This program will help a young math student practice the four basic operations. This program begins by displaying for the user a menu of choices. The choices will be either to create a random problem for one of the four operations or to quit the application. You can see from the example execution log for Math Tutor that the menu consists of choices that allow the user to have the program create a problem or quit.

Here are more specific requirements for the different options.

Addition Problems - Both operands should be random numbers in the range, 1 to 500, inclusive. - Use the '+' as the addition operator symbol

Subtraction Problems - Both operands should be random numbers in the range, 1 to 999, inclusive - But the second operand, (the number being subtracted from the top number) should be less than or equal to the first operand This ensures that the answers to subtraction problems are never negative - Use the '-' as the subtraction operator symbol

Multiplication Problems - The first operand (top number) must be in the range of 1 to 100, inclusive. - The second operand (bottom number) must be in the range of 1 to 9, inclusive. - Use the 'X' as the multiplication operator symbol

Division Problems - Display these problems horizontally as: Operand1 / Operand2 = , a.k.a, Dividend / Divisor = - The range for the divisor (operand 2) must be from 1 to 9, inclusive - The dividend (operand 1) must have a value such that the resulting quotient is always in the range of 1 to 50, inclusive

Remember to use named constants (const) for all hard values found in the requirements or implied by them. In this program all of the minimum and maximum range values should be named constants.

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago