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
nexus9112 [7]
3 years ago
9

Rock, Paper, Scissors is a two-player game in which each player chooses one of three items. If both players choose the same item

, the game is tied. Otherwise, the rules that determine the winner are:
(a) Rock always beats Scissors (Rock crushes Scissors)

(b) Scissors always beats Paper (Scissors cut Paper)

(c) Paper always beats Rock (Paper covers Rock) Implement function rps() that takes the choice ('R', 'P', or 'S') of player 1 and the choice of player 2, and returns −1 if player 1 wins, 1 if player 2 wins, or 0 if there is a tie.


>>> rps('R', 'P') 1


>>> rps('R', 'S') -1


>>> rps('S', 'S') 0
Computers and Technology
1 answer:
mezya [45]3 years ago
7 0

Answer:

The answer is c

Explanation:

You might be interested in
Rainforests are not generally considered a source of _______. d.<br> none of the above
Alexus [3.1K]
Rainforests are generally considered a source of D. none of the above because you can get food, medicine and spices from rainforests. The plants in the rainforests have many medicinal properties.
5 0
4 years ago
What would the output be if we replaced the math expression in the last line with dependents * ((yearsOnJob - 1) * 4) - 6 and th
Leona [35]

Answer:

Please check the explanation.

Explanation:

Let x=dependents * ((yearsOnJob - 1) * 4) - 6

where dependents=3

Lets supppose year on job 3

then

x=( 3*((3-1)*4)-6

x= 3*8 -6

= 24-6

=18

And similarly, we can calculate the value of arithmetic expression all the time.

5 0
3 years ago
Which options can you choose to determine the width and height of data or cells in a spreadsheet? You can choose the or rulers t
Tju [1.3M]

Answer :

Double click on boarder width an height will automatically adjust.

Manual procedure are following:

1.Open desire file of spreadsheet

2. Click on home tab in cell group and then click format.

3. Under cell size click on default width.

4. In standered column width box type new measurements and then click OK.

4 0
3 years ago
What is the primary difference between a Marketing Information System (MIS) and a Decisions Support System (DSS)? a. Cost of imp
SOVA2 [1]

A DSS uses software that allows managers to more fully utilize available information to assist in making decisions  is the primary difference between a Marketing Information System (MIS) and a Decisions Support System (DSS).

<h3><u>Explanation:</u></h3>

A management information system that helps the marketers in making important decisions that are related to the marketing fields refers to the marketing information system. It is the system where the information that are associated with the marketing will be gathered and analysed for making important decisions by the marketing managers.

The information system that helps an organisation in making important decisions are called as Decision support system. The main thing that differentiates MIS and DSS is that A DSS uses software that allows managers to more fully utilize available information to assist in making decisions.

8 0
3 years ago
Why doesn't the ad load ?
baherus [9]
Try refreshing the page, if not restart your device check your internet etc.
3 0
2 years ago
Read 2 more answers
Other questions:
  • Which spereadsheet type will determine<br> how well a bussiness has done over the past year
    11·1 answer
  • Which company is credited with solving a problem by creating a program that could work on all computers?
    11·1 answer
  • What is the output of the following code fragment? int i = 1; int sum = 0; while (i &lt;= 15) { sum = sum + i; i++; } System.out
    5·1 answer
  • State The function<br>of floppy disk​
    10·1 answer
  • The four compass points can be abbreviated by single-letter strings as "N", "E", "S", and "W". Write a function turn_clockwise t
    15·1 answer
  • How many passes will it take to find the 20 in this list? (python)
    11·2 answers
  • All banks follow the same guideline for determining if an applicant qualifies for a loan.
    13·1 answer
  • List and explain three computing devices from the 20th century​
    13·2 answers
  • Five uses of the start button
    7·1 answer
  • Before creating a graphic, you should _____. Select all that apply. A. export it as an SVG file B. consider whe
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!