02.11.2022

Write a Java program that takes as input a paragraph as a String and identifies if any of the words in the paragraph is a $1.00 word. The value of each word is calculated by adding up the value of each one of its characters. Each letter in the alphabet is worth its position in pennies i.e. a

. 0

Step-by-step answer

24.06.2023, solved by verified expert
Unlock the full 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

It is was helpful?

Faq

Computers and Technology
Step-by-step answer
P Answered by PhD

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

Computers and Technology
Step-by-step answer
P Answered by PhD
Answer: c. internet of things.

Explanation:
The technology that combines with the 5G capabilities which was used in the monitoring of the shopping trends is the Internet of Things.
- Internet of Things (IoT) simply means when there are interrelated, and internet-connected objects which collects and transfers data without human intervention through a wireless network or makes use of sensors.
- This is being used by the retailer in the example given to monitor the shopping trends. In conclusion, the correct option is Internet of Things.
Computers and Technology
Step-by-step answer
P Answered by PhD

The solution that would help the client pool their data together is a data integration solution. This type of solution allows for the collection and consolidation of data from various sources into a single, unified database. This can be achieved through a variety of methods, including Extract, Transform, Load (ETL) processes, data warehousing, and master data management. By implementing a data integration solution, the client will be able to access and analyze their data more efficiently, leading to better insights and informed decision-making.

Computers and Technology
Step-by-step answer
P Answered by Master

The correct answer to the following question will be "Auto-encoder".

Explanation:

It is indeed a form of artificial neural net that utilizes in an unmonitored way to practice successful information coding.

The objective of such an auto-encoder seems to be to acquire a specification (encoding) for a collection of information, usually for reducing degrees of freedom, by teaching the channel to overlook the "noise" message.Learn a few things of endogenous model representation and then use it to recreate the object.
Computers and Technology
Step-by-step answer
P Answered by PhD

A code in C++ follows:

Explanation:

#include<iostream>

using namespace std;

int calculate_area(int width, int length)

{

int area;

area=width*length;

return area;

}

int main()

{

int a,b,ar,c,d,ar1,n;

cout<<"\nEnter length of room:";

cin>>a;

cout<<"\nEnter width of room:";

cin>>b;

ar=calculate_area(a,b);

cout<<"\nArea of room:"<<ar<<" units";

cout<<"\nEnter length of mat:";

cin>>c;

cout<<"\nEnter width of mat:";

cin>>d;

ar1=calculate_area(c,d);

n=ar/ar1;

cout<<"\nNumber of mats required are:"<<n;

return 0;

}


Codehs 7.4.6:  gymnastics mats calculate how many mats will be needed to fill a room given the dimen
Computers and Technology
Step-by-step answer
P Answered by Master

def get_word(sentence, n):

# Only proceed if n is positive

   if n > 0:

       words = sentence.split()

# Only proceed if n is not more than the number of words

       if n <= len(words):

           return words[n-1]

   return (" ")

print(get_word("This is a lesson about lists", 4)) # Should print: lesson

print(get_word("This is a lesson about lists", -4)) # Nothing

print(get_word("Now we are cooking!", 1)) # Should print: Now

print(get_word("Now we are cooking!", 5)) # Nothing

Explanation:

Added parts are highlighted.

If n is greater than 0, split the given sentence using split method and set it to the words.

If n is not more than the number of words, return the (n-1)th index of the words. Since the index starts at 0, (n-1)th index corresponds to the nth word

Computers and Technology
Step-by-step answer
P Answered by PhD

The technology that could be partnered with Cloud to allow the international fast-food chain to gain insights into customer data, including location and order patterns, is called data analytics or big data analytics. It involves using software algorithms and tools to analyze large and complex datasets like customer data, and extract useful insights and patterns that can be used to make informed decisions about customer-focused experiences such as promotions and unique user experiences. Data analytics can help businesses improve customer satisfaction, increase sales and revenue, and gain a competitive advantage in the marketplace.

Computers and Technology
Step-by-step answer
P Answered by Master
Answer options:
a. Cleaning a data visualization to remove unwanted patterns.
b. Iteratively creating visualizations to ask and answer new questions.
c. Cleaning data to remove inconsistencies.
d. Filtering the data to look at the responses from only certain groups.

Answer: is correct d. Filtering the data to look at the responses from only certain groups.
Computers and Technology
Step-by-step answer
P Answered by Master

Question:

When multiple team members are working on a related feature, how often should they integrate their work

Select only one answer.

A) Do the integration midway through the iteration.

B) After they reach a logical end of creating the functionality.

C) In a scheduled daily (or multiple times in a day) frequency.

D) In a scheduled weekly (or multiple times in a week) frequency.

The best option is D.

Explanation:

Multiple integrations per day may become too cumbersome. Leaving the various parts of the project until a logical end for a functionality has been reached may create room for a lot of errors thus resulting in time wasted.

To ensure regular course correction (if required), twice a week would suffice.

Cheers!

Try asking the Studen AI a question.

It will provide an instant answer!

FREE