Answer:
This is most definitely a good practice to safeguard personal information. This way, people wouldn't be able to access her computer easily, since it requires a code that only she would know. of course, there is the possibility that someone can just guess or hack into her computer, but that's why computers usually have you create a unique code that consists of uppercases, lowercases, numbers, special characters, etc which would be difficult to guess. it's a good protection for anyone who wants to safely keep their personal information from everyone else.
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
List any four strategies of IT Policy?
Answer:
News skill and qualifications
Programming challenge description: In this challenge, you're given a string containing jumbled letters from several concatenated words. Each word is a numeral from zero to nine. Each numeral may be used multiple times in the jumbled string. Write a program that returns integers corresponding to the numerals used to form the jumbled string. Integers must be sorted in ascending order. For example, reuonnoinfe are shuffled letters of the strings one four nine. Your program's output should be 149.
Following are the program to the given question:
import java.util.*;//import package
public class Main//defining main method
{
public static void main (String[] axv)//defining main method
{
String nums[] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};//defining an arrayof string
int i,j;
Scanner obxc = new Scanner(System.in);//creating Scanner class object to input value
System.out.print("Enter a string formed jumbled letters of numerals: ");//print message
String w = obxc.next();//defining a String variable that input String value
for(i=0; i<nums.length; i++)//defining a loop to count input String length
{
String sa = nums[i];//defining a string variable to hold array value
boolean f = true;//defining a boolean variable
for(j=0; j<sa.length(); j++)//defining a for loop that convets value into integer
{
char cx = sa.charAt(j);//defining char variable that hold value
if(w.indexOf(cx)==-1)//defining if block to check indexOf value
{
f = false;//use boolean variable that hold boolean value
break;//using break keyword
}
}
if(f) //use if to check boolean value
System.out.print (i);//use print method that print i value
}
System.out.println();//use print method for beak line
}
}
Output:
Enter a string formed jumbled letters of numerals: onefournine
149
Explanation of code:
Import package.Defining the main class and also define the main method in it.Inside the main method defining a string of array "nums" that holds sting value and two integer variables "i,j" is defined.In the next step, a scanner class object is declared that inputs the value.After input, a value a for loop is defined that uses a string variable that holds an array value and uses another loop that converts string value into a numeric value.Learn more:
brainly.com/question/15126397
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
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
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
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.
This method adds newValue to the list at the specified index. If the index is invalid for the list, throw an IndexOutOfBoundsException. Note that the last valid index is the size of the list; this would mean adding to the back of the list. Call any existing methods of LinkedList and LLNode as needed.
Answer:
i dont know
Explanation:
can somebody help what's wrong with this code
asap~
Answer:
There's a + missing to concatenate your variable to your string.
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.
Mark is a security analyst working at a consulting firm. He is investigating some unusual Kerberos server performance. Late in the evening after most employees have gone home, the Kerberos server shows a sudden rise in activity. Mark notes, however, a team of developers has started working late, but they report no issues on their end. What does Mark believe is causing the server's activity surge
Answer:
The team of developers.
Explanation:
They are probably doing it when most other employees have left.
I need it in code please (python)
Answer:
def main():
n = int(input("Enter a number to find its sum! "))
sum = int((n*(n+1)) / 2)
print(str(sum))
main()
Explanation:
Here is some code I quickly came up with, you can rehash it for your liking.
I basically took this formula and translated it into python code on line 3. Make sure you use paratheses correctly when translating forumlas or any equation, Order of Operations is everything.
Lmk if this helped!
T
N
O
?
You can insert only the row
only to
True or false
false
Explanation:
good luck bro
have a great day
Answer:
false
Explanation:
Pleaseeeeee helppppp meeeeeeee
Tomorrow is my examination.
Please don't ignore.
Answer:
Floppy disk
Pendrive
sd card
CD
Router
Explanation:
Hope it is helpful 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
How do computer users benefit from the increased speed?
Answer:
jrjhfn4
Explanation:
jejehrurjrbrr
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
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
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:
I 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.
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
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/
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
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) )
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)
is there similarities between plagiarism and software piracy? explain.
8. Which clause will always executes
a) try b) catch c) finally d) None of them
Answer:
I think a is correct answer
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
what is the role of output device?
Answer:
The role of output device is to give the processed information in the form of result.
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)