Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Get accurate and detailed answers to your questions from a dedicated community of experts on our Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.
Sagot :
Answer:
In Java:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter paragraph: ");
String para = input.nextLine();
String[] para_words = para.split("\\s+");
for (int i = 0; i < para_words.length; i++) {
para_words[i] = para_words[i].replaceAll("[^\\w]", "");
char[] eachword = para_words[i].toCharArray();
int penny = 0;
for(char c : eachword){
int value = (int)c;
if(value<=122 && value>=97){ penny+=value-96; }
else if(value<=90 & value>=65){ penny+=value-64; }
}
if(penny == 100){
System.out.println(para_words[i]);
}
penny = 0;
}
}
}
Explanation:
Due to the length of the explanation, I've added the explanation as an attachment
Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.