Answer:
Graphs and chart provide the GUI representation they provide the analysis in form of summary that is easy to understand and they provide good comparision.
Explanation:
Summary
Comparision
Quick to understand
# I need help with my python code, it won't work, and no matter what I try, I can't get it to run properly. Every time I try top run it, it gives me an error saying:
# syntaxError, bad input on line 43, I am not very good at programming, and I just started. I wanted to ask if you guys could help me.
# Here's my code, the purpose of it is to be a rock paper scissors game:
```
import random
def welcome_prompt():
print ("Rock paper Scissors game")
print ("Rules: Rocks beats Scissors, Scissors beats Paper, Paper beats Rock")
def get_player_move():
print ('Round ' + str(round))
print ("Please play one of the following")
move = raw_input(" 1) [R]ock, 2) [P]aper, 3) [S]cissors:")
if get_player_move == ("R"):
print ("You used Rock!")
return 1
elif get_player_move == ("P"):
print ("You used Paper!")
return 2
elif get_player_move == ("S"):
print ("You used Scissors!")
return 3
else:
print "Invalid input, please use capitalized initial (R,P,S)"
return get_player_move()
def get_computer_move():
get_computer_move = random.randint(1,3)
if get_computer_move == 1:
print ("Computer used Rock!")
return 1
elif get_computer_move == 2:
print ("Computer used Paper!")
return 2
elif get_computer_move == 3:
print ("Computer used Scissors!")
return 3
def compare_moves(get_player_move, get_computer_move):
if (get_player_move == 1 and get_computer_move == 1) or (get_player_move
== 2 and get_computer_move == 2) or (get_player_move == 3 and
get_computer_move == 3):
print ("It's a tie!")
return 0
elif (get_player_move == 1 and get_computer_move == 3) or
(get_player_move == 2 and get_computer_move == 1) or (get_player_move ==
3 and get_computer_move == 2):
print ("You win the round!")
return 1
elif (get_player_move == 1 and get_computer_move == 2) or
(get_player_move == 2 and get_computer_move == 3) or (get_player_move ==
3 and get_computer_move == 1):
print ("You lose the round!")
return -1
elif (get_player_move == 4):
print ("You didn't put in correct input, computer gets a free win")
return -1
player_score = 0
comp_score = 0
round = 0
welcome_prompt()
('Round ' + str(round))
while round< 10:
round = round + 1
get_player_move()
get_computer_move()
compare_moves(get_player_move, get_computer_move)
if compare_moves == 1:
player_score = player_score + 1
print 'Player Score'+ str(player_score)
print 'Computer Score'+ str(player_score)
elif compare_moves == -1:
comp_score = comp_score + 1
print 'Player Score'+ str(player_score)
print 'Computer Score'+ str(player_score)
print ("Game Over")
Answer:
hmm i would assume your syntax code has a hidden error that's messing up your code that you are trying to input inside your computers field matrix to do the game. question is where is that error?
Explanation:
Very few games have any sort of narrative, not even a simple one that involves setting the mood through color, sound, environment, and game mechanics.
A.
True
B.
False
Answer:
B. False
Explanation:
Numerous amount of games have narrative, there is an entire genres built around narratives. Any RPG game has a narrative and even bog standard FPS games have some sort of backstory and effects setting a mood.
what types of activities are ideal for a robot to perform?
The type of activities that are ideal for a robot to perform are; Repetitive tasks
Robots are machines that are programmable by a computer which have the capacity of automatically carrying out a complex series of actions.
Now, robots are used in a wide array of industries which include manufacturing, assembly and packaging, transport, earth and space exploration, e.t.c.
The most common use are found primarily in the automobile industry where they are used to carry out repetitive tasks and those that are difficult or hazardous for humans.
Read more about robots at; https://brainly.com/question/9145476
PLEASE ANSWER (CODING IN PYTHON)
Ask what kind of pet the user has. If they enter cat, print “Too bad...”, if they enter
dog, print “Lucky you!" (You can change the messages if you like). Once this works,
add other pets. (Iguana, Pig, Rabbit...)
Answer:
Explanation:
a = input("what kind of pet the user has")
if a == 'cat':
print("Too bad")
elif a == 'dog':
print("Lucky you!")
The program based on the information is given below.
What's the program about?def main():
pet = input("What kind of pet do you have? ").lower()
if pet == "cat":
print("Too bad...")
elif pet == "dog":
print("Lucky you!")
elif pet == "iguana":
print("That's interesting!")
elif pet == "pig":
print("Oink oink!")
elif pet == "rabbit":
print("Hop hop!")
else:
print("I'm not familiar with that pet.")
if __name__ == "__main__":
main()
Learn more about program
https://brainly.com/question/26642771
#SPJ2
Which of the following described a global network connecting billions of computers and other
devices?
A) WiFi
B
ISP
C
World Wide Web
D
Internet
in ____ orientation, a page is taller than it is wide.
Answer:
portrait
Explanation:
in addition to good design sense, what else do web designers need to be proficient in?
Web designers need to be proficient in Front-end coding languages in addition to good design sense.
Web designers build or redesign websites. They understand what it takes to make a website functional and easy to use, but also understand what is needed to make it aesthetically appealing to the user.
Web designers need to be proficient in Front-end coding languages in addition to good design sense.
Find out more on web design at: https://brainly.com/question/8391970
Computers were originally developed to accomplish various tasks in relative isolation, very different from the collaboration and communication we see today.
A.
True
B.
False
Write a program Election that computes the tally in a write-in election, and announces the winner. Since the votes are write-in, there is no pre-determined set of candidates. Whoever appears the most in the votes is the winner. The user enters the individual votes, one vote per line, and ends entering with typing -1 or an empty line. To compute the tally, the program uses two arrays, a String [ ] variable (names), and an int [ ] variable (count). Upon receiving a single vote, the program checks if the name on the vote appears in names, and if it does, the program adds 1 to the value of the element in count. If the name does not appear in names, the program extends both arrays by one element, stores the name in names at the last position and store 1 in count at the last position. In this manner, the two arrays will have the same lengths. The initial length is 0 for both arrays. Below is an example of how the program may runplease I need to demonstrate the code,I need some comments next to every single line
The election program illustrates the use of ArrayLists, loops and conditional statements.
ArrayLists are resizable arrays, while loops and conditional statements are used to perform repetitions and make decisions, respectively.
The election program written in Java, where comments are used to explain each line is as follows:
import java.util.*;
public class Main {
public static void main(String[] args) {
//This creates a Scanner object
Scanner input = new Scanner(System.in);
//This creates a string ArrayList for the names of the candidates
ArrayList<String> names = new ArrayList<String>();
//This creates an Integer ArrayList for the vote count of the candidates
ArrayList<Integer> votes = new ArrayList<Integer>();
//This declares name as string
String name;
//This gets input for the name of the candidates
name = input.nextLine();
//This is repeated until the user enters "-1"
while (!"-1".equals(name)){
//If name is in the list,
if(names.contains(name)){
//This gets the index of the name
int pos =names.indexOf(name);
//This calculates the number of votes
Integer value = votes.get(pos)+1;
//This adds the vote to the vote ArrayList
votes.set(pos, value);
}
//If otherwise
else{
//This adds the candidate name to the name ArrayList
names.add(name);
//This adds 1 as the vote of the candidate to the vote ArrayList
votes.add(1);
}
//This gets input for the name of another candidates
name = input.nextLine();
}
//This prints the name of the election winner
System.out.println("Winner : " +names.get(votes.indexOf(Collections.max(votes))));
}
}
Read more about ArrayLists, loops and conditional statements at:
https://brainly.com/question/19504703
what are quantum computers and it uses
Answer: Quantum computers are machines that use the properties of quantum physics to store data and perform computations
In Super Mario Bros., you become Mario and your friend is Mario’s younger brother Luigi. Your job is to race through Mushroom Kingdom to save Princess Toadstool and avoid the enemy, Bowser. You can jump from and to different objects, picking up coins and other items to help you on your journey through the levels. What game genre (or combination of genres) best describes this game?
A.
strategy simulation
B.
action adventure
C.
RPG
D.
sports action
- What is the use of border? Differentiate between changing color of cells and color of data class 6
Conditional formatting makes it easy to highlight interesting cells or ranges of cells, emphasize unusual values, and visualize data by using data bars, color scales, and icon sets that correspond to specific variations in the data.
A conditional format changes the appearance of cells on the basis of conditions that you specify. If the conditions are true, the cell range is formatted; if the conditions are false, the cell range is not formatted. There are many built-in conditions, and you can also create your own (including by using a formula that evaluates.
Open-ended games give players the most freedom to explore other worlds.
A.
True
B.
False
I'm confused as to if subclasses can call the supers without any implementation and what the right answer is
Answer:
E
Explanation:
Since Example1 and Example2 inherit from Example0, all classes have the method doNothing() at their disposal, so you can call it from e0, e1 and e2.
However, the arguments of this method are Example1 and Example2, so you cannot pass Example0 as a first argument, and you cannot pass Example0 or 1 as a second argument. That only leaves answer E.
You can call the inheritance relation an "is a kind of" relation. So Example1 is a kind of Example0, and Example2 is a kind of Example1, but also Example2 is a kind of Example0.
Now you can understand why e2 can be passed as an argument for Example1, because e2 is a kind of Example1.
A portfolio is a collection of materials that demonstrates your skills, abilities, achievements, and potential.
Question 22 options:
True
False
A portfolio is a collection of materials that demonstrates your skills, abilities, achievements, and potential.
A portfolio is a living and changing collection of records that reflect your accomplishments, skills, experiences, and attributes. It highlights and showcases samples of some of your best work, along with life experiences, values and achievements. A portfolio does not take the place of a resume, but it can accentuate your abilities and what you can offer in the chosen field.
Find out more about portfolio at: https://brainly.com/question/24811520
write 10 place where computer use and it uses
Answer:
dynamite ohohoh
Explanation:
nânnananananananann eh
is a virtue by which you need to secure information by limiting computer access to authorized personnel only.
Answer:
ummmmmmmmm
Explanation:
Confidentiality is a virtue which states that you need to secure information by limiting computer access to authorized personnel only.
Keeping confidential data is crucial especially if your business deals with very important information about a person and his security.
Trust is built between a company and a client. The client trusts the company to keep his information secure and confidential from outside parties. Once the confidentiality of the company is compromised, the business will suffer because clients will no longer trust the company to keep their data secure.
To remove a specified number of characters from anywhere within a string, you should use the ____ method.
Answer:
remove
Explanation:
Axel is conducting some online research, and he wants to narrow down his search to a specific date
range, and he only wants to find images. What should he use?
O quotations
O a Boolean search
O truncation of terms
O filters
Answer:
filters
Explanation:
you use filters to specify what you want to find
Write a program to print sum on first 10 natural numbers.
#include
int main()
{
int i, sum;
for(i=1;i<=10;++i);
{
sum =sum + i;
}
printf("The sum is = %d",sum);
}
A program that prints the sum on the first 10 natural numbers is:
int sum=0;int i=1;for(i=1; i <= 10 ; i++) // the value of i will be from 1 to 10{sum=sum+i; //each number will get added to the variable ‘sum’}System.out.println(sum); //What is a program?A computer program in a programming language is a set of instructions and commands written in a language that a computer can execute or understand.
Using the For Loop program, the variables of the first 10 natural numbers can be written as:
int sum=0;int i=1;for(i=1; i <= 10 ; i++) // the value of i will be from 1 to 10{sum=sum+i; //each number will get added to the variable ‘sum’}System.out.println(sum); //Learn more about writing a program here:
https://brainly.com/question/23275071
how many pages is 1500 words double spaced 12pt font?
Answer:
6 pages
Explanation:
This program is an example of:
def factorial(x):
if x == 1:
return x
else:
return x * factorial(x-1)
Group of answer choices
a do while loop.
recursion.
a for loop.
a while loop.
The program is an example of recursion
In computer programming, recursion is a process in which a function calls itself.
In a recursive program, there is a
base case and a recursive case.When the condition of recursion is met, the base case is returned, else, the recursive case is continued.
In the function given above,
the base case is 'return x' under the condition 'if x == 1'. The recursive case is 'return x * factorial(x - 1)'.So, the function runs until the base case it met and then it stops.
So, the program is an example of recursion.
Learn more about recursion here:
https://brainly.com/question/25797503
Which string method returns true if the character is a numeric character?
letter = input("Enter a letter: ")
A. isDigit(letter)
B. isdigit(letter)
C. letter.isDigit()
D. letter.isdigit()
Answer:
It is D. letter.isdigit()
Explanation:
reason being is that there is only very few scenarions that require a capital letter in them and most of those that have scenarions are to input a operation into the program.
In the given options, the method that will return true when an input charater is a numeric is optionC. letter.isDigit()
Methods In ProgrammingBasically what this function does it to check whether the input variable letter is a numeric character, if true then the function returns true.
Hence, the functions input parameter is a string and it returns and boolean
it should be noted that there is a sligth difference between and method and a function in programming.
Learn more about programming here:
https://brainly.com/question/1538272
Alex needs to create a function capable of counting item reference numbers that he is inserting into a spread sheet. The purpose of this function will be to keep track of inventory. How would Alex go about finding a function to do this? Click the Home tab and use the Find.
Alex can find a function to do this by entering the item reference numbers into the worksheet, and click the Sort button to count the items.
A spreadsheet can be defined as a document or file which comprises cells in a tabulated format (rows and columns), that are typically used for formatting, arranging, analyzing, storing, calculating, counting, and sorting data on computer systems through the use of a spreadsheet application such as Microsoft Excel.
In this scenario, Alex wants to keep track of inventory by creating a function that is capable of counting item reference numbers as he is inserting into a spread sheet. Thus, he should enter the reference numbers of each item into the worksheet, and click the Sort button to count the items.
Read more: https://brainly.com/question/14299634
Answer:
It’s C
Explanation:
edge
Shadow and highlight create depth (3D).
TRUE OR FALSE
Answer:
true because then it would be like not popping out
HELP PLZ 50 POINTS
What code would add a new array item named "home" to the array below?
var titles = ["score", "points"];
titles.put("home");
titles.push("home");
titles.set("home");
array.push("home");
Answer:
titles.push("home");
Explanation:
It depends on if you want to change the original array or not, but since you are just adding on I think this is the correct option.
"... 5 ways to add an item to the end of an array. Push, splice, and length will mutate the original array. Whereas concat and spread will not and will instead return a new array. Which is the best depends on your use case" (www.samanthaming.com)
[] Attached is from the same source
-> I think this is correct
Have a nice day!
I hope this is what you are looking for, but if not - comment! I will edit and update my answer accordingly. (ノ^∇^)
- Heather
Describe the function of memory and
processing unit of Computer system
Answer:
Computer memory is a temporary storage area. It holds the data and instructions that the Central Processing Unit (CPU) needs. ... This allows the CPU direct access to the computer program. Memory is needed in all computers.
Explanation:
hope it help
Can someone help me please and please answer all the questions and explain :D
Answer:
1. is A. 2. is C. 3. is A.
Explanation:
Filters remove all data that does not match the requirements.
Draw truth table for the following logic circuit:
(Please I really need help with this)
Keep Scrolling! :D
[tex] \rule{999pt}{66646pt}[/tex]
????????????helpppp please
Answer:
I lab u pre haha jok
ano ka gold