subject

Rock, Paper, Scissors! Write a program which let's the user play rock, paper, scissors against the computer. It should: Ask for the user's name, and then use that name in output for scoring and messages Randomly generate the computer's choice ("rock", "paper" or "scissors") Ask the user to enter their choice ("rock", "paper" or "scissors") Display the computer's choice Compare the choices, then determine a winner: rock beats scissors paper beats rock scissors beat paper a tie results in a do-over until a winner is declared The winner (user or computer) gets a point After each round, display the total score for the user and the computer Ask if the user wants to play again If yes, then display another round of the game. Don't ask for the user's name again. If no, then display the total number of rounds played and the final score

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
You know the right answer?
Rock, Paper, Scissors! Write a program which let's the user play rock, paper, scissors against the c...
Questions
question
Mathematics, 15.12.2020 01:20
question
Mathematics, 15.12.2020 01:20
question
Physics, 15.12.2020 01:20
question
Mathematics, 15.12.2020 01:20
question
Mathematics, 15.12.2020 01:20
Questions on the website: 13722367