I need help writing this program Write a program that will ask the user to selec
ID: 3623899 • Letter: I
Question
I need help writing this programWrite a program that will ask the user to select an integer number in the range 1 – 100 (inclusive). Store this value in the int variable value.
Do Loop
Prompt the user to guess the random number. Tell the user that the
number is in the range 1 – 100.
Store the user input in the variable guess.
While (guess does not equal value) continue looping
Tell the user their guess was correct and thank them for using your program.
Exit your program with a return statement
Explanation / Answer
#include #include using namespace std; int main () { int value, guess; cout > value; srand(value); value = rand() % 100 + 1; cout > guess; while (value != guess) { cout > guess; } coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.