Answer:
DOS, Denail of Service Attacks
Explanation:
Answer:
Computer viruses are referred to living viruses as they both have similar effects.
Explanation:
While living viruses invade cells and cause harmful effects on the body, computer viruses basically do the same thing. Computer viruses are a malicious code that inserts itself into a computer. It's designed to spread to one computer to another, just like a living virus.
Similarities:
- Spreads from one host to another.
- They both alter/harm the host.
- Both can replicate itself.
Differences:
- A computer virus is manmade, while living viruses aren't.
- A computer virus needs to be removed manually through an app or software while living viruses are almost curable medicine.
- A computer virus effects machines and software while living viruses only infect living organisms.
Answer:
- import java.util.Scanner;
-
- public class Main {
- public static void main (String [] args) {
-
- int jersey_num [] = new int[5];
- int rating [] = new int[5];
-
- Scanner inStream = new Scanner(System.in);
-
- for(int i=0; i < 5; i++){
- System.out.print("Enter player " + (i+1) + "'s jersey number:");
- jersey_num[i] = inStream.nextInt();
-
- System.out.print("Enter player " + (i+1) + "'s rating:");
- rating[i] = inStream.nextInt();
- }
-
- System.out.println("ROSTER");
-
- for(int j=0; j < 5; j++){
- System.out.println("Player " + (j+1) + "-- Jersey number: " + jersey_num[j] + ", Rating: " + rating[j]);
- }
- }
- }
Explanation:
The solution code is written in Java. Firstly create two array, jersey_num and rating, with int type. This is to hold the five pairs of numbers input by user (Line 6 -7).
Next, create a for loop that run for 5 iterations and in each iteration prompt user to input jersey number and rating (Line 11 -17). The input number and rating will be set to the array, jersey_num and rating, respectively.
Next, print the title "Roster" (Line 19).
Create another for loop to display the five input pair of values (Line 21 - 23).
Answer:
The second one:
num = int (input("Enter a number between 1 and 100: "))
c = num
while (c <= 100):
print (c)
c = c + 1
Explanation:
First of all, you don't know Python... (LEARN IT)
Second of all, The first loop doesn't make sense? num 100
And the second one works, you can try compiling it (lazy to explain...).
<span>A special value inside of an INPUT file that marks the position of the location of the next item that will be read from the file. When opened, the READ POSITION is initially set to the first item in the file, thus the Answer is True.</span>