Answer:
import java.util.*;
public class Country
{
public static void main(String args[])
{
char ch,temp;
int flag = 0;
String country;
ArrayList<String> countries = new ArrayList<String>();
Scanner sc = new Scanner(System.in);
do
{
System.out.println("enter the country you have visited:\t");
country = sc.next();
for(int i=0;i<countries.size();i++)
{
if(countries.get(i).equals(country))
{
System.out.println("you have already entered the country");
flag = 1;
break;
}
}
if(flag == 0)
{
countries.add(country);
flag = 0;
}
System.out.println("want to add another country(y/n):\t");
ch = sc.next().charAt(0);
}while(ch!='n');
Collections.sort(countries);
System.out.println("Countries you have visited:\t"+countries);
System.out.println("Total number of contries visited:"+countries.size());
}
}
Explanation:
Answer:
A
Explanation:
Schools are trying to adjust to technology to help students.
Web pages often have built-in connections, or links, to other documents, graphics, other web pages, or web sites.
true
The built-in function you use in python to prompt a user for data input is the input function.
<h3>What is an input function?</h3>
An input function is a function used to prompt a user for data input.
The data input may be a string, integer, float, and many more.
Let's use an example of an input function in python.
x = input("what is your name: ")
y = int(input("How old are you: "))
Hence, the first input will prompt the user for the name and the second input will ask the user for his age. It can only accept integers.
learn more on input function here: brainly.com/question/17623507
#SPJ12
Answer:
They are based on mathematical/geometric expressions.
Explanation:
More specifically, a vector graphic is artwork made up of points, lines, and curves that are based upon mathematical equations, rather than a solid colored square pixels. This means that no matter how large or small or how close you zoom in on the image, the lines, curves, and points remain smooth.
Please give brainliest