Question: I would like some help in completing this exercise. Thank You public class SentenceTally { /** Declare instance variables. */ /** * Default constructor. Initialize

I would like some help in completing this exercise. Thank You

public class SentenceTally {

/** Declare instance variables. */

/** * Default constructor. Initialize the instance variables in this method. * */ public SentenceTally() { throw new UnsupportedOperationException("replace with your implementation"); }

/** * This method returns the average number of words in a sentence. The value has * to be formatted to a String with the following statement: * * Assuming that average is the variable that contains the average number of * words in a sentence, * * String s = String.format("%.2f", average); * * @return the average number of words in the sentences in the book in a String * format */ public String avgSentenceLength() { throw new UnsupportedOperationException("replace with your implementation"); }

/** * This method returns the number of sentences in the book. * * @param token * * @return the number of sentences in the book */ public int getCount() { throw new UnsupportedOperationException("replace with your implementation"); }

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!