Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer the following questions in complete sentences: 1. Explain how the total sentiment method works, including how you're using strings and iteration in your
Answer the following questions in complete sentences: 1. Explain how the total sentiment method works, including how you're using strings and iteration in your solution. 2. Test your starRating method for multiple reviews, including your simple sample review. a. Do the ratings make sense? Explain why or why not. b. Describe at least two ways in which you could adjust your total sentiment method so that your program returns even more reasonable ratings. 3. A student is writing a stargating method based on his total sentiment method, which calculates the sum of all of the sentiment values in a review. He comes up with the following: public static int starRating (String fileName) double totalSentiment totalSentiment (fileName); if(totalSentiment < 15) } return 4; else if(totalSentiment < 10) ( return 3; } else if(totalsentiment
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started