subject

Write a C++ 17 program which generates a random 4 digit number, and then makes the user guess what the number is, while giving the user clues about they numbers they guess. 1. Create an array that holds 4 elements

2. Use a method to fill the array with four RANDOM single-digit numbers

3. Create an array the length of four

4. Use a method to fill the array with the guess the user makes

5. Use a method to compare the tow arrays and return a string where each character in the string is one of the following:

- if the guessed number is in the right spot, display the number

- If the guessed number is the secret/hidden number, display a PLUS sign (+)

- If it's wrong, display a star/asterisk (*)

6. Keep asking for a guess input until the user makes a correct guess.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
You know the right answer?
Write a C++ 17 program which generates a random 4 digit number, and then makes the user guess what t...
Questions
Questions on the website: 13722362