subject

This program is to ask the user N number of math (using only +, -, *, and /) questions. Once the program start it asks the user to enter how many questions will be asked (N, which is between 3-10). Then, the program asks N questions to the user. Each question will be one of four math operations (+, -, *, and /). The operation and operands will be selected randomly in your program. Operand are "unsigned short" between 0 and 100. After N questions, program exits by showing success score (number of correct / number of all questions). Sample Run
Enter number of questions I need to ask: 5
1) 3 + 4 = 6
Incorrect, 7 was the answer.
1) 8 - 4 = 4
Correct
1) 5 * 6= 30
Correct
1) 5 - 345= -300
Incorrect, it should be -340.
1) 0-0=0
Correct
Your success rate is 60%.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
You know the right answer?
This program is to ask the user N number of math (using only +, -, *, and /) questions. Once the pro...
Questions
question
Biology, 20.04.2021 04:10
question
Mathematics, 20.04.2021 04:10
question
Mathematics, 20.04.2021 04:10
question
Mathematics, 20.04.2021 04:10
Questions on the website: 13722360