Caption:it is used to display speaker's name and describe relevant sounds that are inaccessible to people of hard hearing or who are deaf
Back color: it is used to fill a section's interior. it contains numerical expressions that corresponds
Font: it is used to add style to a document or webpage
Alignment: it is used to describe how text is placed on a screen.
If you like my answer,mark as brainliest
Write a Python program stored in a file q1.py to play Rock-Paper-Scissors. In this game, two players count aloud to three, swinging their hand in a fist each time. When both players say three, the players throw one of three gestures: Rock beats scissors Scissors beats paper Paper beats rock Your task is to have a user play Rock-Paper-Scissors against a computer opponent that randomly picks a throw. You will ask the user how many points are required to win the game. The Rock-Paper-Scissors game is composed of rounds, where the winner of a round scores a single point. The user and computer play the game until the desired number of points to win the game is reached. Note: Within a round, if there is a tie (i.e., the user picks the same throw as the computer), prompt the user to throw again and generate a new throw for the computer. The computer and user continue throwing until there is a winner for the round.
Answer:
The program is as follows:
import random
print("Rock\nPaper\nScissors")
points = int(input("Points to win the game: "))
player_point = 0; computer_point = 0
while player_point != points and computer_point != points:
computer = random.choice(['Rock', 'Paper', 'Scissors'])
player = input('Choose: ')
if player == computer:
print('A tie - Both players chose '+player)
elif (player.lower() == "Rock".lower() and computer.lower() == "Scissors".lower()) or (player.lower() == "Paper".lower() and computer.lower() == "Rock".lower()) or (player == "Scissors" and computer.lower() == "Paper".lower()):
print('Player won! '+player +' beats '+computer)
player_point+=1
else:
print('Computer won! '+computer+' beats '+player)
computer_point+=1
print("Player:",player_point)
print("Computer:",computer_point)
Explanation:
This imports the random module
import random
This prints the three possible selections
print("Rock\nPaper\nScissors")
This gets input for the number of points to win
points = int(input("Points to win the game: "))
This initializes the player and the computer point to 0
player_point = 0; computer_point = 0
The following loop is repeated until the player or the computer gets to the winning point
while player_point != points and computer_point != points:
The computer makes selection
computer = random.choice(['Rock', 'Paper', 'Scissors'])
The player enters his selection
player = input('Choose: ')
If both selections are the same, then there is a tie
if player == computer:
print('A tie - Both players chose '+player)
If otherwise, further comparison is made
elif (player.lower() == "Rock".lower() and computer.lower() == "Scissors".lower()) or (player.lower() == "Paper".lower() and computer.lower() == "Rock".lower()) or (player == "Scissors" and computer.lower() == "Paper".lower()):
If the player wins, then the player's point is incremented by 1
print('Player won! '+player +' beats '+computer)
player_point+=1
If the computer wins, then the computer's point is incremented by 1
else:
print('Computer won! '+computer+' beats '+player)
computer_point+=1
At the end of the game, the player's and the computer's points are printed
print("Player:",player_point)
print("Computer:",computer_point)
Mary has been locked out of her account after failing to correctly enter her password three times. As the system administrator, you need to unlock her account. Which of the following commands would unlock Mary's account assuming that you are using pam_faillock.so module?
a. faillock --reset --user mary
b. pam_faillock --unlock --user mary
c. pam_faillock --reset --user mary
d. faillock --unlock --user mary
A sinewave has a period (duration of one cycle) of 645 μs. What is the corresponding frequency of this sinewave, in kHz, expressed to 3 significant figures?
please help me figure this out I am so confused
The corresponding frequency of this sinewave, in kHz, expressed to 3 significant figures is: 155 kHz.
Given the following data:
Period = 645 μsNote: μs represents microseconds.
Conversion:
1 μs = [tex]1[/tex] × [tex]10^{-6}[/tex] seconds
645 μs = [tex]645[/tex] × [tex]10^{-6}[/tex] seconds
To find corresponding frequency of this sinewave, in kHz;
Mathematically, the frequency of a waveform is calculated by using the formula;
[tex]Frequency = \frac{1}{Period}[/tex]
Substituting the value into the formula, we have;
[tex]Frequency = \frac{1}{645\; * \;10^{-6}}[/tex]
Frequency = 1550.39 Hz
Next, we would convert the value of frequency in hertz (Hz) to Kilohertz (kHz);
Conversion:
1 hertz = 0.001 kilohertz
1550.3876 hertz = X kilohertz
Cross-multiplying, we have;
X = [tex]0.001[/tex] × [tex]1550.39[/tex]
X = 155039 kHz
To 3 significant figures;
Frequency = 155 kHz
Find more information: https://brainly.com/question/23460034
If i took my SIM card out of my phone and put it in a router then connect the router and my phone with Ethernet cable would the ping change???
Answer:
ummmmmmmmmmmmm nooooo???
what do you mean by hardware and software?
Answer:
I think the above information will help you a lot.
Have a nice day.
Please read the screen shot brainly is not letting me write the whole thing
who is the owner of apple company??
Answer:
Steven Paul Jobs......
....
What is wrong with the following if statement (there are at least 3 errors).
The Indentation indicates the desired behavior.
if numNeighbors >= 3 || numNeighbors = 4
++numNeighbors;
printf ("You are dead! \n “);
else
--numNeighbors;
In programming, if statements are used to test conditions. The statement to be executed will be determined by the result of the conditions. A statement will be executed if its accompanying condition is true.
The errors in the given code segment are as follows:
The if condition on line 1 should be in a closed bracket; i.e. ()The if condition has more than 1 statements to execute. So, it requires a curly bracket; i.e. {}The second part of the first condition should be == 4 and not =4; because the proper operator to make comparison is == while = is used as an assignment operatorThe correct code is as follows:
if (numNeighbors >= 3 || numNeighbors == 4) {
++numNeighbors;
printf ("You are dead! \n “); }
else
--numNeighbors;
Read more about conditional statements at:
https://brainly.com/question/20228453
Create a Python dictionary that returns a list of values for each key. The key can be whatever type you want.
Design the dictionary so that it could be useful for something meaningful to you. Create at least three different items in it. Invent the dictionary yourself. Do not copy the design or items from some other source.
Next consider the invert_dict function.
def invert_dict(d):
inverse = dict()
for key in d:
val = d[key]
if val not in inverse:
inverse[val] = [key]
else:
inverse[val].append(key)
return inverse
Modify this function so that it can invert your dictionary. In particular, the function will need to turn each of the list items into separate keys in the inverted dictionary.
Run your modified invert_dict function on your dictionary. Print the original dictionary and the inverted one.
Describe what is useful about your dictionary. Then describe whether the inverted dictionary is useful or meaningful, and why.
Answer:
Explanation:
# name : [animal type, age, sex]
animal_shellter = {
"Teddy": ["dog",4,"male"],
"Elvis": ["dog",1,"male"],
"Sheyla": ["dog",5,"female"],
"Topic": ["hamster",3,"male"],
"Kuzya": ["cat",10,"male"],
"Misi": ["cat",8,"female"],
}
print(animal_shellter)
print("")
def invert(d):
inverse = dict()
for key in d:
val = d[key]
for item in val:
if item not in inverse:
inverse[item] = [key]
else:
inverse[item].append(key)
return inverse
inverted_shellter = invert(animal_shellter)
print(inverted_shellter)
Select all steps in the list below that should be completed when using the problem-solving process discussed in this chapter.
Take action.
Take a break.
Evaluate.
Complete the task.
Consider solutions and list ideas.
Understand the task or need.
Ask a coworker for help.
Take action.
Evaluate.
Complete the task.
Consider solutions and list ideas.
Understand the task or need.
Pleaseeeeee helppppp meeeeeeee
Tomorrow is my examination.
Please don't ignore.
Answer:
Floppy disk
Pendrive
sd card
CD
Router
Explanation:
Hope it is helpfulI really need To know how To get The special ending for final fight 2 for super nintendo it’s a video game
Answer:
Check Yt
Explanation:
More often than not there are many video tutorials about every game imaginable.
what is the role of output device?
Answer:
The role of output device is to give the processed information in the form of result.
what are the different versions of Ms word?
Answer:
ms paint will not attend as the ICRC is the time to move becuse to get free skin on your skin that you have a doubt about the quality and
2) What are three categories of computer languages? 3) Write four components of a QBASIC window. 4) What are the three types of operators in QBASIC? 5) What is the use of connector symbol in flowchart? 6) What is a computer network? 7) State two uses of Internet. 8) Write three examples for web browser. 9) Name some popular ISPs in Sri Lanka. 10) Differentiate between MAN and PAN.
Answer:
2: assembly language , machine language and high level language
3: a character set , constants , variables , statements , operators and expressions
Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output.
user_name = str (input = ("Please enter your name: "))
def greet (user_name):
print ("Welcome to your ghetto, {0}!".format(user_name) )
what is the difference between packed and unpacked bcd numbers
Explanation:
Packed BCD ( Binary coded decimal) is type in which each decimal digit is represented by 4 bits ( 1 nibble) . For Example : 14 will be shown as 0001 0100 in packed BCD form. Unpacked BCD is type in which each decimal digit is represented by 8 bits ( 1 byte).
9. If you want to change the Header text of any Form then which property will you use
a) Header b) Text c) Name d) Font
Answer:
header
Explanation:
i would use header
Identify the statement about Windows tasks that is FALSE.
To launch an application, click the Windows icon, select "All Programs," and then click an application.
The boot process is the process for powering off a computer.
A common way to shut down the computer’s operating system is by using the Start menu.
Users log into their accounts on the Welcome screen, before Windows is ready to use.
The statement about Windows tasks that is FALSE is
The boot process is the process for powering off a computer.According to the question, we are to discuss about Windows tasks and how it works as regards to the computer.
As a result of this we can see that in launching an application;
we need to click on Windows iconselect "All Programs," click an application.Therefore, The boot process is not the process for powering off a computer.
Learn more about Windows tasks .
https://brainly.com/question/1594289
The statement that is false is: The boot process is the process for powering off a computer, which is the second option. The boot process is actually the process of starting or powering on a computer, not powering it off.
The boot process refers to the sequence of events that occur when a computer is powered on or restarted. It is the process of starting up the computer's hardware and loading the operating system into memory so that it is ready for use. During the boot process, the computer's firmware (such as the BIOS or UEFI) performs a series of checks and tests to ensure that the hardware components are functioning correctly. It then searches for the operating system on connected storage devices, such as the hard drive or solid-state drive, and loads it into memory.
Learn more about the boot process here.
https://brainly.com/question/24355262
#SPJ6
8. Which clause will always executes
a) try b) catch c) finally d) None of them
Answer:
I think a is correct answer
help me
Q3/ Put True or false in front of the following
statements:
1- You can use the Goal seek feature available by clicking on the data what-if analysis-> Goal Seek.
2- The equations in matrix form [X]-[A] [b]. 3- The A B matrix will be 2 3 ,where A is 2*3 and B is 3*3..
4- The command of inverse is +minverse(arry1...arry2).
5- The (By Changing Cells) box should contain the location of the decision variables for the problem.
Answer:
TrueFalseFalseTrueFalseExplanation:
mark me as brainlyest
is there similarities between plagiarism and software piracy? explain.
can somebody help what's wrong with this code
asap~
Answer:
There's a + missing to concatenate your variable to your string.
I wanna learn python but I don't know any websites that I can learn it online. Thanks for attention!
Answer:
https://www.codecademy.com/
Which best describes sorting, filtering, and deleting records?
O Sorting and filtering can be undone, but deleting records is a permanent change.
O Sorting can be undone, but filtering and deleting records are permanent changes.
O Deleting and filtering can be undone, but sorting records is a permanent change.
O Deleting can be undone, but sorting and filtering records are permanent changes.
Answer:
Deleting and filtering can be undone, but sorting records is a permanent change.
Many Java programs that you create will receive and process user input. In order to ensure that user input is accurate, you will need to use input validation and exception handling.
a. True
b. False
Answer: True
Explanation: True
Consider a network that is a rooted tree, with the root as its source, the leaves as its sinks, and all the edges directed along the paths from the root to the leaves. Design an efficient algorithm for finding a maximum flow in such a network. What is the time efficiency of your algorithm
Answer:
please mark me brainlist
Explanation:
List any four strategies of IT Policy?
Answer:
News skill and qualifications
The speed of a computer is measured in____?
Answer:
gigahertz
Explanation:
The clock speed measures the number of cycles your CPU executes per second, measured in GHz (gigahertz)
[tex]\sf{}[/tex]
Explanation:
The speed of a computer is measured in gigahitrz
How do computer users benefit from the increased speed?
Answer:
jrjhfn4
Explanation:
jejehrurjrbrr
Write equivalent predicate statement for Every teacher who is also a painter loves Bob
Answer:
Every teacher who is also a painter loves Bob