View the step-by-step solution to:

Write a c++ program to prompt the user to enter his name. The program should ask the user to guess the login password (generated randomly to be...

This question was created from CSI205APro002 https://www.coursehero.com/file/11745941/CSI205APro002/

11745941-303822.jpeg

answer of the code please

11745941-303822.jpeg

Write actt program to prompt the user to Enter his name . The program Should ask the User"
to Guess the login, password ( generated randomly to be between 1000 - 5950) . The user will
try to guess the password digit by digit as follows :
Guess the first digit of the passinord # # # #. ]
Sorry Wrong guessing ! ! !.
Guess the first digit of the passinord# # # # 1
TVOTT' You have a correct guess .
Guess the second digit of the password 1# # # 5
ITOTT' You have a correct guess .
Guess the third digit of the password 15#$. 3
Sorry Wrong guessing ! ! !.
The user will have only three chances to guess a specific digit from the password . After ?
SUCCESSIVE Wrong guesses a $50 balance will be deduced from the user balance . For each
Correct Guessing a $10O dollar will be added to his balance if it is a correct guess from the
first trial, and a $75 dollar will be added to his balance if it is a correct guess from the second
trial . Note that the user is granted a balance of $ 200 dollar on the game start .
The user Will a game round if he was able to guess the login password, he looses otherwise*
At the end of the game the user should be prompted about his balance . The program should
allow many rounds of the game .

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question