Computers and Technology

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%.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, AngiT
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
image
Computers and Technology, 22.06.2019 12:30, kayleigh2037
What characteristic of long period comets suggest they come directly from the oort cloud?
Answers: 2
image
Computers and Technology, 22.06.2019 14:30, SKYBLUE1015
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, yayamcneal05
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
Do you know the correct answer?
Write a C++ program that generates a random two-digit integer. The program prompts the user to predi...

Questions in other subjects:

Konu
Mathematics, 06.05.2021 19:40
Konu
Mathematics, 06.05.2021 19:50