Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

eraltainstructure.com/courses/20399/assignments/104215 Guessing Game Lab Write a program that generates a random number between 1 and 100, and asks the user to guess the number. Use

image text in transcribed
eraltainstructure.com/courses/20399/assignments/104215 Guessing Game Lab Write a program that generates a random number between 1 and 100, and asks the user to guess the number. Use a loop that repeats until the user guesses the correct number Write your program using an enumerated data type: enum Guess ( LOW,CORRECT, HIGH Guess guess If the guess is too high, the program displays: Too high, try again If the guess is too low, it displays: Too low, try again If the guess is correct, it displays: Congratulations! You figured out my number in X tries where X is the number of guesses. AVA se enum ues Low, CORRECT, H

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions