The program asks the user to enter two integers. Then it asks three

questions: what's the product of the two integers, what's the quotient

of the two integers, and what's the remainder of the division of the two

integers. It inputs the answers to each of the question from the user, tells

the user whether the answer was correct or worng, and

finally prints a message that depends on how many correct answers the

user provided.

For example, here is a sample run of the program you will

write (user inputs are in bold):

----------------------

MATH QUESTIONS

----------------------

Please enter an integer.

5

Please enter another integer.

3

Answer the following questions:

1. 5 * 3 = ?

17

Wrong!

2. 5 / 3 = ?

1

Correct.

3. 5 % 3 = ?

2

Correct.

You did OK.

You got 2 correct.

That's 66.66667%

Make sure that your program produces output exactly like the sample provided

above and that it includes th epercentage of correct answers.

Here are the different messages that should be printed depending on the

number of correct answers:

Correct Answers

Message

0

You did very bad.

1

You did poorly.

2

You did OK.

3

Good job!

Mibbit.com Pasted on 2010-10-17 21:18:11