Question: Design a flowchart using Javascript language Question 6: Guessing Game Diagram a flowchart of the following use case description. At the start of the app,
Question 6: Guessing Game Diagram a flowchart of the following use case description. At the start of the app, the app will randomly pick a number between 1 and 10. Display the instructions, "Let's play a game. I picked a random number between 1 and 10. Guess it to win." Then, ask the user to guess a number "Enter a number between 1 and 10". If the user's guess does not match the computers number, say to the user "Wrong. Guess again" and loop back to asking the user to guess a number. If the user's guess is correct, end the loop and output "You won!" Then display "You had to guess (count) times to win." Add a counter to the loop so you can display the count of times the user had to guess before winning. Hint: Use a sentinel- controlled loop while counting repetitions. See slides from the lecture. [Paste your flowchart here]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
