subject

Write a C++ program that generates a random two-digit integer. The program prompts the user to predict the generated number by entering a two-digit integer, and then determines the accuracy of the user’s prediction according to the following rules:

If the user’s prediction matches the generated number exactly, the accuracy is 100%.

If one digit in the user’s predicted number matches a digit in the generated number, the accuracy is 50%.

If none of the digits in user’s predicted number matches with the generated number, the accuracy is 0%.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
You know the right answer?
Write a C++ program that generates a random two-digit integer. The program prompts the user to predi...
Questions
question
Mathematics, 01.09.2020 05:01
question
Advanced Placement (AP), 01.09.2020 05:01