Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help on string/ sequential data, c++ includeb iostream include ostream in

ID: 3858416 • Letter: I

Question

I need help on string/ sequential data, c++

includeb iostream

include ostream

include istream

include ostream

include fstream

include sstream

include string

include iomanip

bool GetInputFileStream(std::ifstream * fin, std::string filename);

void GetInputFileStream(std::ifstream * fin, std::string filename);

void GetOutputFileStream(std::ofstream * fout, std::string filename);

void SetGetPointer(std::istream & fin, int location);

void SetPutPointer(std::ostream & fout, int location);

void AnalyzeFile(std::istream & fin, int & numUsed, int & numNew, double & newTotalPrice, double & newTotalMileage, double & usedTotalPrice, double & usedTotalMileage);

void PrintLine(std::ostream & sout, std::string s);

void PrintNew(std::istream & fin, std::ostream & fout);

void PrintUsed(std::istream & fin, std::ostream & fout);

void PrintStatistics(std::ostream & fout, int numUsed, int numNew, double newTotalPrice, double newTotalMileage, double usedTotalPrice, double usedTotalMileage);

std::string FormatCarInfo(std::string year, std::string make, std::string model, double price, double mileage);

////////////these are prototypes given

//////what he wants........ Your job is to create and fill the functions with the necessary logic. Another file named cars.txt is provided for you to test with. The format of the file is as follows: [year] [make] [model] [price] [mileage] [category] You will need to read this file in and process it as described below.

///////and his cars he's owned in the past that need to be able to be in a file are

1999 Ford Ranger 3000 156000 used

2000 Mazda Miata 4000 98000 used

2015 Jeep Wrangler 33000 250 new

/////last assignment and this one after reading chapter twice I don't know where to start, it is sad I choose EE at least its my only programming class....any help MUCH APPRICIEATED!!!!

Explanation / Answer

#include #include #include #include #include #define TOCOUT(output) if(!outputToCout) { buf = output##_t.rdbuf(); } else { buf = std::cout.rdbuf(); } std::ostream output(buf); void fstreamBufferTest(){ const bool outputToCout = true; const unsigned int multiplyStep = 1
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote