Guess the number game
Develop a JavaScript solution to the follow problem: Create a program that asks a user for a number between 1 and 100, the program should then output to the user higher, lower, or correct, depending upon the input from the user and the random number assigned to the number to be guessed. Once the user is correct, the program should print off the correct answer, but also the number of times the user was incorrect. The program then should ask if the user would like to play again, and if so start the game again, and when correct subsequent times, compare the users high score with their current score, providing an output to state such, as "Great job you guessed 3 less times!", or "Whoops, you need 2 more guesses this time :(".
Your program must:
- Pseudo-code - type in separate document and upload to same assignment folder.
- be properly commented
- satisfy all conditions above in the stated problem.
10 years ago 20
Purchase the answer to view it
- javascript_code.docx
- pseudocode.docx
- Malawi and BAT
- what is a substrate
- PSY/405 Humanistic & Existential Personality Theories Paper/Matrix
- homework to topannapot
- Essay (read description)
- genetics biology
- QTN 351 WK 3 DQ 1 (Differences Between Probability and Coincidence)
- In humans, there are four types of blood: type A, type B, type, AB and type O. The alleles A...
- miniorties see racism as what?
- COMPLETE