Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is c++ assignment. Could you do programming exactly same output please? Write a program that can be used as a math tutor for a

This is c++ assignment. Could you do programming exactly same output please? image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write a program that can be used as a math tutor for a young student. The program should display two random numbers (-999 to 999) that are to be added, subtracted, multiplied or divided. Start by displaying a menu allowing the user to select: addition, subtraction, addition/subtraction, multiplication, division, multiplication/division, and random. The dual selections on the menu should randomly select between the two operations. Random selects among all 4. Your menu will only display once at the start of the program. Instructions should be shown how to quit ("type 'quit to exit the program"). The program should wait for the student to enter the answer. If the answer is correct, a message of congratulations should be printed. If the answer is incorrect, a message should be printed showing the correct answer. After the user has finished the math problem, the program should display another problem using the original menu choice. This process is repeated until the user chooses to quit the program by entering 'n On exit, the program should display the number of correct answers, the number of questions, and the % correct. Use a separate function for each operation (+,-, ,/) Generate the random numbers in main

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 Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago