Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ code Key Le Functions (pass by value vs reference) Function files (.h & .cpp) Vector (of struct) Looping, Branching, Print formatting File input &

c++ code


student submitted image, transcription available below

student submitted image, transcription available below

student submitted image, transcription available below

student submitted image, transcription available below  
 

Key Le Functions (pass by value vs reference) Function files (.h & .cpp) Vector (of struct) Looping, Branching, Print formatting File input & File output String manipulation & ASCII Character verification Assignment Problem: You work for a major social media platform and have been asked to evaluate reviews for different sites. You have a series of tasks to perform in order to complete this project. Part 1 - Evaluating the Original Sentiment: You will be evaluating the sentiment of 8 different reviews. formatting the output to 80 characters (or less) per line and printing the 'sentiment' of this review. To complete this you will need to: Read the file 'sentiment.txt" which contains over 6000 words along with a given 'sentiment value (a decimal number that is either positive (because the word has a positive sentiment) or negative (because, well, it is a negative sentiment). This file is fundamentally a csv file (a comma delimited file). You may use substring logic or csv logic to read this file. . You will load this information into a vector of structs (containing the string word and the float value of each word). If the word has a value > 1.25, it will also be loaded into a 'positive' word vector or if it is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Measurement Theory In Action

Authors: Kenneth S Shultz, David Whitney, Michael J Zickar

3rd Edition

0367192187, 9780367192181

More Books

Students also viewed these Programming questions