Title: Assignment 7
Course: COP 1510 Programming Concepts > Section: Module 8 - Menu-Driven Programs

For your module 8 assignment, you will design and write a program following the specification that is given below. Design your program using a flowchart and pseudocode. Submit your final flowchart and pseudocode design in the dropbox.

Math Tutor Enhancement

In Module 8 we looked at an example math tutor program that would display the answer to a random math problem. Enhance this assignment to prompt the user to enter the solution to the displayed problem. After the user has entered their answer, the program should display a message indicating if the answer is correct or incorrect. If the answer is incorrect, it should display the correct answer. The division section should use Real data types instead of Integer data types. Keep track of how many correct/incorrect answers the user makes during the program and when they choose to exit, the program should display the percentage they got correct (# of correct / total # attempted).

Example Output:

1) Addition
2) Subtraction
3) Multiplication
4) Division
5) Exit

Enter your selection:

1[Enter]
12 + 34 =
45 [Enter]

I’m sorry, the correct answer was 46

1) Addition
2) Subtraction
3) Multiplication
4) Division
5) Exit

Enter your selection:

2[Enter]
45 – 2 =
43[Enter]

Yes, that is the correct answer!

1) Addition
2) Subtraction
3) Multiplication
4) Division
5) Exit

Enter your selection:

5 [Enter]

Thanks for playing. You answered 1 out of 2 questions correct for a score of 50%