The answer you're looking for might be "backwards-compatible".
Help each other because if the other sister is older she should have more experience and knowledge
import java.util.Scanner;
public class JavaApplication70 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Input a String:");
String txt = scan.nextLine();
System.out.println("Input an integer:");
int num = scan.nextInt();
String newTxt = "";
int w = 0;
for (int i = txt.length()-1; i >= 0; i--){
char c = txt.charAt(i);
while (w < num){
newTxt += c;
w++;
}
w = 0;
}
System.out.println(newTxt);
}
}
I hope this helps!
Answer:
correct option is D i.e. 20
Explanation:
Given data:
Parallelizable portion is given as 95%
so remaining will be serial portion i.e. 5%
we know that, for infinite number of cpus, maximum speed is calculated as

where f denote serial portion = 5% = 0.05

v = 20
hence so for serial portion of 5%, maximum speed is 20
correct option is D i.e. 20