![Gearyjames8](/avatars/25322.jpg)
Gearyjames8
17.02.2020 •
Computers and Technology
Why is it useful for a programmer to have some background in language design, even though he or she may never actually design a programming language?
Solved
Show answers
More tips
- C Computers and Internet How to Properly Order Clothing from International Online Stores...
- F Food and Cooking How to Calculate the Gender of Your Child with Blood?...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- E English HOW DO THE GOVERNMENT COMBAT THE DIFFERENT ORGANIZED CRIME IN THE PHILIPPINES?...
- P Physics If the tank with 1000 litre has a greater cross-sectional area than that with capacity 500 litre then whose bottom exerts more pressure if both contain equal volume of water?...
- M Mathematics Which of these is not a method used to calculate finance charges? a.adjusted balanceb.average daily balancec.usual balanced.previous balance...
Ответ:
He/She may need to read a program's code and need to know the language to know what he is doing to the program. just a guess
Ответ:
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");
}
}