Answer:
see explaination
Explanation:
import java.io.*;
import java.util.Scanner;
public class Winners {
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(new File("WorldSeriesWinners.txt"));
String commands[] = new String[100000];
int c = 0;
while (sc.hasNextLine()) {
String input = sc.nextLine();
System.out.println(input);
if (input.isEmpty())
continue;
commands[c++] = input;
}
sc.close();
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter the name of a team: ");
String name = keyboard.nextLine();
int count = 0;
for (int i = 0; i < c; i++) {
if (commands[i] != null) {
if (commands[i].equals(name)) {
++count;
}
}
}
if(count!=0)
System.out.println(name + " has won the World Series in the time period from 1903 through 2018 " +count + " number of times" );
else
System.out.println("Team with name "+name+ " does not exists");
}
}
25 SQUARES
How this is calculated?
- The size of the squares doesn't matter, since the number of squares will be the same.
- We have a row of 5 squares: and on top of this you stack 5 more squares.
- Doing this for a total of 5 times so that we have 5 rows with 5 squares each.
- So we have 5 + 5 + 5 + 5 + 5 = 25 squares.
What is an array?
- An array is a data structure that holds similar, related data.
- Before an array can be used, it must be declared. To declare an array a programmer gives it at least two properties:
- an identifier
- a size - the number of elements it will hold
To know more about arrays, refer:
brainly.com/question/26104158
#SPJ4
Answer:
c.Update DNS records dynamically for DHCP clients that don't request updates.
Explanation:
A DNS server is a computer server that contains a database of public IP addresses and their associated host names, and in most cases serves to resolve, or translate, those names to IP addresses as requested.
A DHCP Server is a network server that automatically provides and assigns IP addresses, default gateways and other network parameters to client devices.
Dynamic DNS is a method of automatically updating a name server in the Domain Name Server, often in real time.