Create a program to create a version of rock-paper-scissors

Assignment Help Programming Languages
Reference no: EM131693066

Assignment: For project we are going to create a program to create a version of Rock-Paper-Scissors where the user plays the computer. But I want your program to cheat - yes, cheat. Normally in a Rock-Paper-Scissors program the user would select Rock, Paper or Scissors and then the computer would select one randomly. But I want your program to let the user select one and the have the computer select the one that wins. So, if the user selects Rock, the computer should select Paper.

First ask the user how many games they want to play. This should be an odd number. If the user doesn't enter an odd number, give them an error and make them re-enter it. Then play Rock-Paper-Scissors that number of times.

At the end of the program should say who won a majority of the matches.

1. Turn in the program source code as a .py file.

2. Explain in your solution and logic either with in-code comments or in a separate document.

Attachment:- Assignment File.rar

Reference no: EM131693066

Questions Cloud

Customer service-employee morale or greater market share : Discuss with your team how the selected company can improve within one of the following areas: customer service, employee morale, or greater market share.
The negative issues associated with allowing conflicts : Powerpoint slides presentation should briefly outline no more than 2-3 slides on the negative issues associated with allowing conflicts
During peak times-how many customers are waiting in line : During peak times, about 5 minutes to complete their transaction On average how many customers are waiting in line?
How many customers on average are in drive-through : How many customers on average are "in" the drive-through (i.e., from the time they enter to the time they exit the drive-through) on atypical day?
Create a program to create a version of rock-paper-scissors : For project we are going to create a program to create a version of Rock-Paper-Scissors where the user plays the computer
Review case scenario of corporate finance : Explain the meaning of "managerial flexibility" and assess its significance in relation to other factors that are also important to project evaluation.
Use the life cycle analysis for product : You decide to use the Life Cycle Analysis (LCA) for a product that the company offers to enhance their understanding.
Describes corporate social responsibility : Which model do you think better describes corporate social responsibility and why?
Outsourcing located within the module content : Please view the NBC Learn Videos on outsourcing located within the module content. They present a couple contrasting views.

Reviews

Write a Review

Programming Languages Questions & Answers

  How is active directory implemented?

How is Active Directory implemented?

  Assembly language instructions into machine code

The assembly instructions are stored in a file. Each line of the file stores exactly oneinstruction. The name of the file should be provided to the program as a command line argument.

  Find e(x) and var(x)

Suppose 0.4 of students are women and gpa for women has mean of 3 and sd 0.8; Gpa for men has mean of 2.5 and sd of 1.0. a sample size of 100 students which consist 40 women and 60 men.

  Direction and magnitude be integers or doubles

Design the program consider Will the direction and magnitude be integers or doubles - will the input vectors be passed by value, by reference, or by const reference?

  Design a program that calculate the percentage

You have been asked to design a program that will allow a teacher to calculate the percentage and the final grade for students in a class

  Define back-end and front-end applications.

Define procedures (subroutines) and functions and the difference between them.

  Write a program that calculates bill for a cellular telephon

Write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Its rates vary, depending on the type of service.

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

  Program to inputs encrypted four-digit integer

Write separate program to inputs encrypted four-digit integer and decrypts it to form the original number. thanks in advance for ur help.

  Include a pseudo code, flowcharts making complete solution

Your final document should contain a "hierarchy chart" of phases, flowcharts, pseudo code, data dictionary, and seven UML diagrams as developed in Visio and Word. Your document should also contain a paragraph narrative on how each diagram relates ..

  Smallest and largest values in element floating-point array

Copy 11-elemts array source into first portion of 34-element array sourceCopy. Find out the smallest and largest values in 99-Element floating-point array data.

  Write program to accept a list of student-s name

Write a program that will accepts a list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program should then compute for the average of 3 quizzes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd