Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter a sentence: ");
String sentence = in.nextLine();
String[] words = sentence.split("\\s");
for(String s : words)
System.out.println(s + " -> " + s.length());
}
}
Explanation:
Ask the user to enter a sentence
Get each word in the sentence using split method and put them in words array
Loop through the words. Print each word and number of characters they have using the length method in required format
Answer:
It helps to give the geographic location of photos.
Explanation:
A geotag is added into the photography information when it's taken. That info is part of the EXIF information of a photo that lists a bunch of data related to the photo, like the camera brand, model, the aperture, the speed, the ISO, and so on.
That's assuming the GPS info is available of course, but if it's taken by a phone, it has the GPS info. Most mid-range and upper-range cameras have it too.
That information is used for example by Google Maps to present photos taken at a specific location.
Answer:
The question is invalid; there are many types of computer user. Why on earth do you think there are five?
From the top of my head.
Casual- someone at home browsing the web, reading email.
IT Consultant. Advising people.
Software developer- writing software
Secretary - manages email for a company
Academic. Writing research papers.
Monitors. Monitor a computer system.
That’s six off the top of my head. There are probably a dozen more. So why do you think there are five?