Chapter 7 Assignment 1 (Anthony Crouse).docx - Anthony...

This preview shows page 1 - 2 out of 2 pages.

Anthony CrouseCIST130503/25/2020Programming Logic and Design, 9th EditionChapter 7ProgrammingExercises 1.Pendant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a label that contains the author’s name, the title of the work, and a volume number in the formVolume 9 of 9. For example, a set of three volumes requires three labels:Volume 1 of 3, Volume 2 of 3,andVolume 3 of 3. Design an application that reads records that contain an author’s name, the title of the work, and the number of volumes. The application must read the records untileofis encountered and produce enough labels for each work.#include#includeusing namespace std;//Read data from file and returns number of recordsint readFile(string authorName[], string title[], int volumeNo[], int volumeNo1[])//Creates an object of ifstreamifstream readf;//Opens the file volume.txt for readingreadf.open (volume.txt);//Counter for number of records

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture