Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an application game that generates 4 random numbers each between 1 and 2 5 ( no duplicate numbers ) . Allow the user to

Create an application game that generates 4 random numbers each between 1 and 25(no duplicate numbers). Allow the user to guess 4 numbers. If the user enters a duplicate number, display a message saying duplicate number and have them enter another number. Make sure they enter 4 different numbers. Compare the numbers to the computer generated random numbers (only 1 match per number, no duplicate number matches) and display a message if the user guessed the following:
None of your numbers were matched
One number matched
Two numbers matched
Three numbers matched
If Four numbers are matched display a winning message.
Also, display the random generated number and the users 4 numbers entered separated by spaces.
Example: ( But feel free to make it look different, just make sure you have this information displayed)
Two numbers matched
Computer generated number: 310520
Your numbers: 110524
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions