Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 344 Weeks Ago, 4 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 15 May 2017 My Price 6.00

Write a script file to play a simple number guessing game as follows

Write a script file to play a simple number guessing game as follows. The script should generate a random integer in the range 1, 2, 3, . . . , 14, 15. It should provide for the player to make repeated guesses of the number, and should indicate if the player has won or give the player a hint after each wrong guess. The responses and hints are:

■ “You won,” and then stop the game.

■ “Very close,” if the guess is within 1 of the correct number.

■ “Getting close,” if the guess is within 2 or 3 of the correct number.

■ “Not close,” if the guess is not within 3 of the correct number.

Answers

(8)
Status NEW Posted 15 May 2017 01:05 PM My Price 6.00

-----------

Attachments

file 1494856358-Answer.docx preview (178 words )
W-----------rit-----------e a----------- sc-----------rip-----------t f-----------ile----------- to----------- pl-----------ay -----------a s-----------imp-----------le -----------num-----------ber----------- gu-----------ess-----------ing----------- ga-----------me -----------as -----------fol-----------low-----------s. -----------The----------- sc-----------rip-----------t s-----------hou-----------ld -----------gen-----------era-----------te -----------a r-----------and-----------om -----------int-----------ege-----------r i-----------n t-----------he -----------ran-----------ge -----------1, -----------2, -----------3, -----------. .----------- . -----------, 1-----------4, -----------15.----------- It----------- sh-----------oul-----------d p-----------rov-----------ide----------- fo-----------r t-----------he -----------pla-----------yer----------- to----------- ma-----------ke -----------rep-----------eat-----------ed -----------gue-----------sse-----------s o-----------f t-----------he -----------num-----------ber-----------, a-----------nd -----------sho-----------uld----------- in-----------dic-----------ate----------- if----------- th-----------e p-----------lay-----------er -----------has----------- wo-----------n o-----------r g-----------ive----------- th-----------e p-----------lay-----------er -----------a h-----------int----------- af-----------ter----------- ea-----------ch -----------wro-----------ng -----------gue-----------ss.----------- Th-----------e r-----------esp-----------ons-----------es -----------and----------- hi-----------nts----------- ar-----------e: ----------- ----------- -----------Y-----------ou -----------won-----------,----------- a-----------nd -----------the-----------n s-----------top----------- th-----------e g-----------ame-----------. -----------■----------- -----------Ve-----------ry -----------clo-----------se,-----------”----------- if----------- th-----------e g-----------ues-----------s i-----------s
Not Rated(0)