Question: Hey Im really stuck on this lab can you how me a answer that will work on zybooks in C + + please and thank
Hey Im really stuck on this lab can you how me a answer that will work on zybooks in C please and thank you Here is the starting default code #include
#include
#include
FIXME: stream manipulation library
using namespace std;
Function Declarations
void createAuthorDataFilestring fileName;
FIXME: declare the get header function
FIXME: declare the make table function
FIXME: declare the make histogram function
int main
Variables
FIXME: What variables are needed in main Define them below
getHeaderdataTitle columnHeader columnHeader;
createAuthorDataFilenovelstxt;
FIXME: call the make table function
FIXME: call the make histogram function
return ;
open outFS and put the user data into the file
void createAuthorDataFilestring fileName
int numNovels;
string authorName;
ofstream outFS;
outFS.openfileName;
cout "Enter a data point done to stop input: endl;
cin numNovels;
cin.ignore;
getlinecin authorName;
while numNovels && authorName "done" to stop enter done
display data to screen
cout "Data string: authorName endl;
cout "Data integer: numNovels endl;
write data to file
outFS numNovels ;
outFS authorName endl;
get data for the next author
cin numNovels;
cin.ignore;
getlinecin authorName;
outFS.close;
cout endl;
get title for data and columns headers
FIXME: define the get header function
open outFS and put the user data into the file
FIXME: declare the make table function
make table and output data onto table
FIXME: declare the make histogram function
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
