Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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