Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

unsure of what extra means. But in just. Must be Java coded beginner to intermediate level. Need to just JS Fiddle so you must provide

unsure of what extra means. But in just. Must be Java coded

beginner to intermediate level. Need to just JS Fiddle

so you must provide html and java code

array algorithm to be used should incorporate

1. Determine Max and Min values inarray 2. Pick point at midpoint of max and min numbers 3. Check the midpoint against user entered number 4. If midpoint > guess; max = midpoint; repeat from 2 5. If midpoint 6. If midpoint = guess; done

actual Assignment

Using your JSFiddle account you are going to create a guessing game,only it will be the computer doing the guessing. the computer will ask you for a number between 1 and 1000, it will check first to make sure your input is within the bounds.

Once you enter the number it will guess the number and do a comparison with the number you entered. It will output the results of the guess and continue to do this until it gets the correct answer. NOTE:THE USER IS NOT THE ONE GUESSING THE USER ENTERS A NUMBER AND THE COMPUTER OUTPUTS ITS GUESSES

This is what the output of the program will look like (if I enter 329). Once again the user inputs the number and the computer searches for it in the Array.

User Input

Input: 329

Computer Output

Guessed 500 too high.

Guessed 250 too low.

Guessed 375 too high.

Guessed 313 too low.

Guessed 344 too high.

Guessed 329 Got It!

It took me 6 Tries.

Programming parameters:

1 This will be coded in Javascript.

2 You should create a dimensioned array of 1000 elements.

3 You should fill in the elements from 1 to 1000 in order prior to implement the search

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

Design Operation And Evaluation Of Mobile Communications

Authors: Gavriel Salvendy ,June Wei

1st Edition

3030770249, 978-3030770242

More Books

Students also viewed these Programming questions

Question

64. Consider a branching process having Answered: 1 week ago

Answered: 1 week ago