The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
*Must use attached code*
*Image examples attached*
In this exercise, you’ll develop a player-vs-computer game that tallies odd and even numbers until there’s a winner. The interface looks like this:
After the Play button is clicked, the user will see a series of prompts, like this:
The game ends when either the player or the computer reaches 50 or when the user enters 999 to quit. In either case, the application should display an appropriate message like: “You WIN!”, “You lose :(”, or “You quit” in the span element to the right of the Play button.
exercises_extrach08odds_evens
If you haven’t already done so, add data validation to make sure the entry is a valid number from 0 through 5.
Attachments:
-----------