8. Write a program that plays Rock-Paper-Scissors with the user and displays the cumulative score. For example: Rock... Paper... Scissors... Shoot! Make your move (r, p, s) or q (to quit): s I said Rock Ha! You are zapped – 1:0 Rock... Paper... Scissors... Shoot! Make your move (r, p, s) or q (to quit): p I said Paper Раper-aper! Tiе — 1:0 Rock... Paper... Scissors... Shoot! Make your move (r, p, s) or q (to quit): q
Q: Determine the difference between the phrases appliance and device. Give specific instances for each.
A: Introduction: The device in issue has a very particular purpose, according to the query. You'll be t...
Q: write a JAVA program to input a positive integer from the user and print true in the output if the n...
A: As per the requirement program is developed. Algorithm: Step 1: Write the main() method Step 2: Ask ...
Q: Subinterface G0/1.10 on R1 must be configured as the default gateway for the VLAN 10 192.168.10.0/24...
A: To route between VLANs, the R1 GigabitEthernet 0/0/1 interface is logically divided into three subin...
Q: Using Python, create a program that has the following classes: Point - Just like in the lecture, wi...
A: Solution - Programming language used: Python All solution steps are included in program code as com...
Q: Computer science What are some of the most fundamental database functions that a spreadsheet can't ...
A: Introduction: A database is structured in a logical, consistent, and internally consistent manner. F...
Q: Write the following in machine language or low level language
A: Full Name 01000110 01110101 01101100 01101100 00100000 01001110 01100001 01101101 01100101 Index Nu...
Q: To troubleshoot an error code, what procedures would you take? What resources do you utilise to find...
A: Introduction: When an issue occurs with your Aspera product, you will often get an error message and...
Q: In the context of software design and development, what is the difference between cohesion and coupl...
A: Introduction: Cohesion and coupling are used in the categorization technique to highlight relationsh...
Q: What role does a foreign key play in a database? Please provide an example of why this is necessary.
A: A relation database is data represented as a set of relations(tables). Each table can have a primary...
Q: When referring to the GOTO saga and spaghetti code, What was demonstrated by the Structured Programm...
A: Introduction: With regard to spaghetti code and the GOTO issue, we must explain what the Structured ...
Q: s a member of a banking system's information system staff, you are responsible for doing system main...
A: Introduction: This type of system maintenance is adaptive in the present scenario.
Q: Write a C++ program to print the text "C++ Programming." in the output along with the quotes. Expect...
A: ANSWER:
Q: Computer science Determine the most often used file characteristics and operations, as well as a br...
A: Introduction: Determine the most often used file characteristics and operations, as well as a brief ...
Q: Describe in a brief the content of the following Linux files with printing the first five lines of t...
A: Vmlinuz file is the name of Linux kernel executable , by other word its a compressed Linux kernel an...
Q: When it comes to the Internet Protocol (commonly known as IP), it's all about making the most of wha...
A: The Internet Protocol or also known as IP is a collection of rules for routing and addressing data p...
Q: Examine some of the reasons why individuals don't care to safeguard their computer systems against a...
A: Introduction: Software refers to the portion of a computer system that contains computer instruction...
Q: Is it feasible to use the Ryze Tello Drone to develop a facemask detecting system? do you use python...
A: yes, it is possible to create a facemask detection using the Ryze Tello drone with help of python.
Q: Given a string str and number n, write a program in JavaScript that recursively appends a copy of st...
A: CODE: function RecuriveCopy(strInp, num) { if (num <= 0) { return strInp; } ...
Q: Computer Science Write a C++ code where the user is able to enter their name, symptom of sickness, ...
A: PrintHospitalData() : It will print all the hospitals data. PrintPatientData() : It will print all...
Q: iscuss the functionality of Disk Provisioning Architecture in the Cloud computing model in de
A: Lets see the solution.
Q: What are the primary areas of conoern for risk management, and how wwould you define them?
A: the answer for below question is: Risk management is the process of identifying, evaluating and mana...
Q: threads. Each thread represents an English alphabet, say a, b, c, etc. Each thread should concatenat...
A: The answer is
Q: How do you verify that each machine in an IPsec network utilises its own private key pair if you're ...
A: The Internet P Security Architecture (IPsec) gives cryptographic insurance to IP datagrams in IPv4 a...
Q: Find an example of an information systems development project that had cost overruns by searching th...
A: Introduction: Information systems development (ISD) projects are notorious for their high incidence ...
Q: What are the chances that a user's effort to add data to the database would result in the creation o...
A: Introduction: A database is a collection of structured data that has been logically organised and is...
Q: What are the benefits and drawbacks of biometrics? What should privacy advocates be concerned about...
A: Advantages of Biometrics- Biometrics are always with you and it cannot be lost. It improves securit...
Q: 4. Define a method in JAVA that should take 4 numbers as the parameters and returns the average of a...
A: Given: Define a method in JAVA that should take 4 numbers as the parameters and returns the average ...
Q: write a JAVA program to input a positive integer from the user and print true in the output if the n...
A: import java.util.Scanner; public class Main{ //Function to count number of digits in a number. ...
Q: the level order traversal of the Binary Tree's nodes' values - from left to right, level by level. /...
A: The answer is
Q: Network maintenance is an important task in organizations today who entirely rely on their network i...
A: In the third раrty mаintenаnсe (TРM) industry, netwоrk mаintenаnсe is essentiаlly whаt y...
Q: Describe the factors that contributed to the evolution of computer security into today's information...
A: Introduction: Computer security, also known as cybersecurity or information technology security, is ...
Q: Explain the fundamental notion of in-database analytics.
A: Introduction: Analytic logic can be embedded in the database, allowing data processing to take place...
Q: What impact will artificial intelligence (AI) have on the future? What Artificial Intelligence (AI) ...
A: Introduction: AI is a cutting-edge technology that can identify a person's features such as their fa...
Q: Exercise Database Management Concepts - BITS Corporation You've described replication to management,...
A: Introduction: Because we have two databases, it will aid in improving aggregate function performance...
Q: Write a C++ program to take an array of ints, print true if the sequence of numbers 1, 2, 3 appears ...
A: Write a C++ program to take an array of ints, print true if the sequence of numbers 1, 2, 3 appears ...
Q: Why would you use Wireshark to study the ARP Protocol?
A: Introduction: ARP is a basic technique for finding the MAC addresses of network machines that are as...
Q: Write a Java program to print the given pattern: GHIJ DEF ВС
A: Java is one of the languages, which is considerably used in many sectors of Computer. In older time...
Q: Was there a significant difference between an interpretive language and one that was compiled?
A: Interpretive language: Interpretive language is those language which doesn’t compile and indirectly ...
Q: One of the primary benefits of e-mail is spam. Is it true or false
A: Spam emails are also called unsolicited emails. They contain the information which needs to be sprea...
Q: 1. What's "Bayes Decision Rule"? Explain with presenting formula(s) for a hypothetical two-class exa...
A: Bayes Decision Rule
Q: What is the effect of data mining on individual privacy and security?
A: Given: We have to discuss what is the effect of data mining on individual privacy and security.
Q: Why shouldn't a data object be included in a data model?
A: Introduction: The phrase knowledge model will connote two distinct but closely related concepts. Typ...
Q: We have seen an iterative algorithm to find minimum or maximum of a given array. In this problem, we...
A: ALGORITHM:- Pair MaxMin(input_array, size_of_input_Array) if size_of_input_Array = 1 return...
Q: number of addresses of a network whose one of the IP addresses is 72.250.220.112 / 27.
A: IP address An IP address is made up of a series of integers separated by periods. IP addresses are ...
Q: 7+8 la Prefix (b). postfix
A:
Q: What are the main components of a data governance programme, and what is the relationship between da...
A: Introduction: Data stewardship refers to the practises required to guarantee that data is correct, u...
Q: Discuss the process of contradiction proof. Give an example to illustrate your point.
A:
Q: Mention the many degrees of lock granularity in a database.
A: Lock granularity Lock granularity is defined as the database’s size at a single clock when its locke...
Q: What is the cost of putting a database management system in place?
A: Introduction: Creating your own DBMS might cost a variety of amounts depending on a variety of thing...
Q: What is the difference between centralised and parallel/distributed databases?
A: Introduction: In the following respects, replication in centralised databases differs from replicati...
code for this question in python
Step by step
Solved in 3 steps with 5 images
- Write a program that simulates rolling a pair of dice. The program should answer the question "how many times does it take to roll a 7 with a pair of dice ?"This is basically something that has a certain number of states (sort of like how a traffic light can be Red, Yellow, Green) and changes from one state to another.This program will have 4 states: HAPPY, HUNGRY, BORED, SAD. Here are the rules. Our animal starts in a state of Happy, with the values for hungry = 0 and bored = 0. Each round the player can "feed", "play" or "ignore" their animal. If they feed their animal, then the hungry meter goes down and bored meter goes up. If they play with their animal, then the bored meter goes down and the hungry meter goes up. If they ignore their animal, then both hungry and bored go up. Don't go below 0 Here are the state changes. Each one of these is a "case" in a switch (from current state -> new State):HAPPY If hungry >= 2 transition to HUNGRY If bored >= 2 transition to BORED HUNGRY if hungry >= 4 transition to SAD if bored > hungry transition to BORED if hungry < 2 transition to HAPPY BORED If bored >= 4…Write a program that plays a guessing game with the user. The user should pick a letter, and the computer should try to guess the letter. After each guess, the user should tell the computer whether its guess was too high or too low. With this information, the computer should be able to guess the letter within five tries. The user should be able to give whole words or single upper or lower case letters as responses. c++
- You have been asked to write a program to play rock-paper-scissors. Your program will ask the user to input a number 0, 1, or 2 to denote rock, paper, and scissors respectively. Your program will then randomly generate a number 0, 1, or 2 to denote the computer’s hand. The rules for the game are: •A scissor can cut paper. •A rock can knock a scissor. •A piece of paper can wrap a rock. Let the game run continuously until either the user or the computer wins 3 times, displaying the outcome of each hand. At the end of the game, display a message indicating whether the user or the computer wins Helpful Hint: import random player2= random.randint(0, 2)Write a program that allows a player to play Rock, Paper, and Scissors against the computer. In this version, if there is a tie the computer wins. The user must beat the computer to win around.The player will provide their name and the number of rounds they want to play. They will begin by entering their name and the number of rounds they would like to play. For each round, the player will input a character to represent their play (‘R’ for rock, ‘P’ for paper, or ‘S’ for scissors). The program will randomly select its play and output whether the player won or lost. After all, rounds have been completed the program will output the match-winner. In the case that the player wins the match, it will output their percentage of wins otherwise it will output the percentage of losses. Use the following functions / descriptions for your code. You may (should) add more functions as you deem necessary, but you may not omit or modify the functionality described below (Don’t forget you will also…plz solve it asap ????????: Write a program for a game that consists of two players. The rule of the game is that player 1 inputs a random number from 1-100. Player 2 will input 5 numbers. If the summation of those numbers is equal to the number OR less than or greater than the number by 3 (+3 or -3), then player 2 wins. Otherwise, player 1 wins. Test Case 1 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 7 Output Player 2 wins Explanation: The summation of 10,10,20,5 and 7 is 52 which is greater than 50 by 2. According to the rule, player 2 wins. Test Case 2 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 1 Output Player 1 wins Explanation: The summation of 10,10,20,5 and 1 is 46 which is less than 50 and also doesn’t…
- Write a program that can suggest an activity based on the temperature. If the temperature is between 20 to 40 degrees Fahrenheit, suggest the user go skiing; if the temperature is between 41 to 60 degrees Fahrenheit, suggest the user go hiking; if the temperature is in the range of 61 to 80, suggest swimming. For all the temperatures out of these ranges (too cold or too hot), then suggest staying inside.Write a program that generates a random number in the range from 1 through 100 After generating the random number, the user is to guess the number. If the user’s guess is higher than the random number, the program should display “Too high, try again” If user’s guess is lower than the random number, the program should display “Too low, try again”. If the user guesses the number, the program should congratulate the user and then generate a NEW random number so the game can start over. Make the game menu driven with these options Main Menu ______________ 1)Play Game 2)Exit written in pythonWrite a program that plays rock paper scissors against the user. Ask the user for what they want to throw (rock, paper, or scissors) and then have the computer randomly pick their throw. Then check to see who wins (or if it’s a tie). You can interpret 1 as rock, 2 as paper, and 3 as scissors if you’d like (or any other combination of numbers). 2. Craps is a dice game played at many casinos. A player rolls a pair of normal six-sided dice. If the initial roll is 2, 3, or 12, the player loses. If the roll is 7 or 11, the player wins. Any other initial roll causes the player to roll for point. That is, the player keeps rolling the dice until either rolling a 7 or re-rolling the value of the initial roll. If the player re-rolls the initial value before rolling a 7, it’s a win. Rolling a 7 first is a loss. Write a program to simulate multiple games of craps and estimate the probability that the player wins. For example, if the player wins 249 out of 500 games, then the estimated probability…
- Write a program that will figure out the required change for a purchase. Start by asking the user for the price of the product and the amount paid. (We are expecting that the user will give a larger value for the amount paid.) Read in each of these values as a double. Report back to the user the number of each denomination of change due. You are not just telling the user the amount of money he gets back. Hint: Working with integers is much easier. The modulo operator is your friend for this assignment. Also, note that pennies can be tricky due to the poor real number to binary conversions. (Remember that 1.00 could actually be stored as 0.9999999999997.) Do not include five-dollar bills, ten-dollar bills, etc. Only show coins and one-dollar bill amounts. Be sure to test multiple values. There is a test case below. Your program should run the test case exactly as it appears below, and should work on any other case in general. Output Example (User input is marked with >>>.…A square is divided into four smaller regions as shown in (a). If you throw a dart into the square one million times, what is the probability for the dart to fall into an odd-numbered region? Write a program to simulate the process and display the result.Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 5.1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. Don’t display the computer’s choice yet. 5.2. The user enters his or her choice of “rock”, “paper”, or “scissors” at the keyboard. Gather this input using JOptionPane.showInputDialog(). 5.3. Display the computer’s choice. 5.4. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then rock wins. Display something to the effect of: “Rock smashes the scissors.” If one player chooses scissors and the other player chooses paper, then scissors wins. Display something like: “Scissors cuts paper.” If one player chooses paper and the other…