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 06:50
Type the correct answer in the box. spell all words correctly. which view of report creation allows you to customize the report before the database program creates it? creating a report in allows you to customize the report before the database program creates it. pl asap
Answers: 1
question
Computers and Technology, 22.06.2019 12:10
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
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
question
Arts, 06.02.2021 23:00
question
Mathematics, 06.02.2021 23:00
question
English, 06.02.2021 23:00
question
Mathematics, 06.02.2021 23:00
question
English, 06.02.2021 23:00
Questions on the website: 13722367