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:
The widespread shift to remote work has caused businesses to reconsider their use of Extended Reality (XR) by inspiring them to re-imagine employee experiences and engagement with XR capabilities.
<h3>What is Extended Reality?</h3>
Extended Reality (XR) refers to an umbrella terminology that is used to describe all real and virtual physical environments (realities) and human-machine interactions through the use of various computer technologies and wearables.
In Business management, Extended Reality (XR) are typically used by employers of labor to boost workforce performance, engagement, retention and deliver better experiences to both their employees and customers (clients).
In terms of widespread shift to remote work, businesses have reconsidered their use of Extended Reality (XR) by re-imagining employee experiences and engagement with XR capabilities, so as to boost workforce performance, engagement, and retention.
Read more on Extended Reality here: brainly.com/question/26479902
Answer:
The function of the tab is used to advance the cursor to the next tab key.
Answer:
The code that will cause the triangle of asterisks is given by;
for (i=1; i<=n; i++){
for (j=1; j<=i; j++)
cout << "*";
cout << "\n";
}
Explanation: