1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stich3 [128]
3 years ago
8

Write a game that plays many rounds of Rock Paper Scissors. The user and computer will each choose between three items: rock (de

feats scissors, but loses to paper), paper (defeats rock, but loses to scissors), and scissors (defeats paper, but loses to rock). If the player and computer choose the same item, the game is a tie. You could extend this program to include different algorithmic strategies for choosing the best item. Should the computer pick randomly
Computers and Technology
1 answer:
Paraphin [41]3 years ago
5 0
Even if I make the game can’t email it to uuuu
You might be interested in
Give an example of a function from N to N that is:______.
vichka [17]

Answer:

Let f be a function

a) f(n) = n²

b) f(n) = n/2

c) f(n) = 0

Explanation:

a) f(n) = n²

This function is one-to-one function because the square of two different or distinct natural numbers cannot be equal.

Let a and b are two elements both belong to N i.e. a ∈ N and b ∈ N. Then:

                                f(a) = f(b) ⇒ a² = b² ⇒ a = b

The function f(n)= n² is not an onto function because not every natural number is a square of a natural number. This means that there is no other natural number that can be squared to result in that natural number.  For example 2 is a natural numbers but not a perfect square and also 24 is a natural number but not a perfect square.

b) f(n) = n/2

The above function example is an onto function because every natural number, lets say n is a natural number that belongs to N, is the image of 2n. For example:

                                f(2n) = [2n/2] = n

The above function is not one-to-one function because there are certain different natural numbers that have the same value or image. For example:

When the value of n=1, then    

                                   n/2 = [1/2] = [0.5] = 1

When the value of n=2 then

                                    n/2 = [2/2] = [1] = 1

c) f(n) = 0

The above function is neither one-to-one nor onto. In order to depict that a function is not one-to-one there should be two elements in N having same image and the above example is not one to one because every integer has the same image.  The above function example is also not an onto function because every positive integer is not an image of any natural number.

4 0
3 years ago
What might be the cause of a black screen right after you install a new video card?
s344n2d4d5 [400]
Perhaps you failed to properly connect the monitor to the new video card?
5 0
3 years ago
why is it important to include keywords that represent each of the essential concepts that make up your research question when y
SpyIntel [72]

Answer:

hi

Explanation: hi

7 0
3 years ago
Is a hotdog a sandwich?​
Stells [14]

Answer:

Explanation:

Yes

4 0
4 years ago
Read 2 more answers
Discuss how you think Kuhl’s findings regarding the benefits of babies being exposed to languages in person versus over the tele
maw [93]

Audible toys, television, digital channels, and other trustworthy technology are utilized to teach kids language. The learning of languages and the retention of knowledge, however, are not greatly aided by these.

What is Television ?

A mass communication medium known as “television is used here. Electronic media with a video and audio foundation include television. A variety of channels, including news, sports, music, and movie channels, are available on television.

It is not helpful for a newborn to learn language to watch television or listen to radio programs that are advertised as educational. By engaging and listening to caring adults—actual dialogue from real people, not TV and audios—babies and toddlers acquire new words and build language abilities.

Hence, the significance of the television is aforementioned.

Learn more about on television, here:

brainly.com/question/11867986

#SPJ1

3 0
2 years ago
Other questions:
  • The variables xp and yp have both been declared as pointers to integers , and have been assigned values (i.e., they are each poi
    12·1 answer
  • Why it’s important to keep the standard internet protocol TCP/IP?
    11·1 answer
  • How is a ink pen better than a digital pen.
    8·1 answer
  • What are the useful techniques in program design?
    12·1 answer
  • What is a computer dedicated to a single function, such as a calculator or computer game? A. TabletB. PDAC.ApplianceD. Minicompu
    6·1 answer
  • White lines
    7·2 answers
  • What are some examples and non-examples of digital security?
    6·1 answer
  • Why did Elena Gilbert Turn her humanity off when she was sired to Damon? (In The Vampire Diaries)
    14·1 answer
  • How many 60 KB jpeg files can be stored on a 2 MB folder in your hard drive?​
    7·1 answer
  • How do you create a function in C++
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!