Question
in codeblock a for c++
9) Parze a tsle into an array the Data Set (shown below) into a text tile. Make aure there are no extra space or linea in the text file. b. Read the tizet tield of the tsle tauthors nanen) into a partially filled array. c. Output the array. Output Bxample Ernest Hemingway Mark Twain Wi11iam Faulkner Jane Austen Wi11iam Shakespeare Xurt Vonnegut Agatha Christie Leo Tolstoy Edgar Allan Poe Truman Capote Ray Bradbury Pyodoz Dostoyevsky Emily Dickinson Data Set Brnest Hemingway, 1899,1961 Mark Twain, 1835,1910 Wi1liam Faulkner, 1897,1962 Jane Austen, 1775,1817 William Shakespeare, 1564,1616 Kurt Vonnegut, 1922,2007 Agatha Christie, 1890,1976 Leo Tolstoy, 1928,1910 Edgar Allan Poe, 1809,1849 Truman Capote, 1924,1984 Ray Bradbury, 1920,2012 Fyodor Dostoyevsky, 1821,1881 Bmily Dickinson, 1830,1886
0 0
Add a comment Improve this question Transcribed image text
Answer #1

i have added the DataSet File in the same path as the C++ Source File.This can be changed.

I have also added comments in the code for better understanding.

#include stdafx.h #include< iostream» #include<fstream> #include(string> using namespace std; void main) ifstream myTxtFile//Reading Each character in a particular line and checking for the first occurence of, //Then extracing the substring from thDataSet Notepad File Edit Format View Help Ernest Hemingway, 1899, 1961 Mark Twain, 1835,1910 illiam Faulker,1897,1962 Jane A

C:Windows system321cmd.exe Ernest Hemingway ark Twain wil l i am Fau 1 ker Jane Austin william Shakespeare Kurt Vonnegut Agat

Add a comment
Know the answer?
Add Answer to:
in codeblock a for c++ 9) Parze a tsle into an array the Data Set (shown...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Program: Data visualization

    5.10 LAB*: Program: Data visualization(1) Prompt the user for a title for data. Output the title. (1 pt)Ex:Enter a title for the data: Number of Novels Authored You entered: Number of Novels Authored(2) Prompt the user for the headers of two columns of a table. Output the column headers. (1 pt)Ex:Enter the column 1 header: Author name You entered: Author name Enter the column 2 header: Number of novels You entered: Number of novels(3) Prompt the user for data points. Data points must be in this format: string, int. Store the information before the comma into a string variable and the information after the comma into an integer. The user will enter -1 when they...

  • Need help with this homework, and follow the bolded text required 7.10 LAB: Data Visualization (1) Write a function, get_data_headers(), to prompt the user for a title, and column headers for a table....

    Need help with this homework, and follow the bolded text required 7.10 LAB: Data Visualization (1) Write a function, get_data_headers(), to prompt the user for a title, and column headers for a table. Return a list of three strings, and print the title, and column headers. (2 pt) Ex: Enter a title for the data: Number of Novels Authored You entered: Number of Novels Authored Ex: Enter the column 1 header: Author name You entered: Author name Enter the column...

  • In this assignment you are going to handle some basic input operations including validation and manipulation,...

    In this assignment you are going to handle some basic input operations including validation and manipulation, and then some output operations to take some data and format it in a way that's presentable (i.e. readable to human eyes). Functions that you will need to use: getline(istream&, string&) This function allows you to get input for strings, including spaces. It reads characters up to a newline character (for user input, this would be when the "enter" key is pressed). The first...

  • C++ Create an application that searches a file of male and female first names. A link...

    C++ Create an application that searches a file of male and female first names. A link to the file is provided on the class webpage. "FirstNames2015.txt" is a list of the most popular baby names in the United States and was provided by the Social Security Administration. Each line in the file contains a boy's name and a girl's name. The file is space-delimited, meaning that the space character is used to separate the boy name from the girl name....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT