Answer:
See explaination
Explanation:
import java.util.Scanner;
public class Word
{
public static void main(String args[])
{
Scanner read=new Scanner(System.in);
char repeat='Y';
String phrase=null;
int index=0;
while(repeat=='Y')
{
System.out.println("enter a phrase :");
phrase=read.nextLine();
while(index<=0)
{
System.out.println("enter an index greater than 0");
index=Integer.parseInt(read.nextLine());
}
String s;
int spaces = phrase == null ? 0 : phrase.length() - phrase.replace(" ", "").length();
int numofwords=spaces+1;
if(index>numofwords)
{
index=numofwords;
}
System.out.println("word is: "+ getWord(phrase,index));
System.out.println("do you want to repeat (Y/N)");
repeat=read.nextLine().charAt(0);
index=0;
}
read.close();
}
private static String getWord(String phrase, int index) {
// TODO Auto-generated method stub
Scanner in =new Scanner(phrase);
String word=null;
int wordindex=0;
while(wordindex!=index)
{
word=in.next();
wordindex++;
}
in.close();
return word;
}
}
Check attachment screenshot
Answer:
13,33 MIN.
Explanation:
1. Time with Older Computer (OC) = 2 time with New Computer (NC)
2. OC+ NC = 10 MIN.
replacing 1. in 2. OC + OC/2 = 10 min.
1.5 OC =10min
OC=6.66 MIN
NC = 3,33 MIN.
If we replace NC with OC , 3,33 min will take 2 times (6,66 min)
Total Time = 6,66 + 6,66= 13,33 min
Correct, you're looking for an outer loop that loops from 0 to 15, and an inner loop from 0 to 50.
Unless you share the backup HD only the local user is going to see it. Given that it's a server, it's not a problem. You can also hide the backup with attributes +h +s and many other ways.
Answer:
false
Explanation:
pretty sure energy in motion is only for kinetic energy