Hi guys, I've been struggling with C++ lately and was wondering if I could get any help with this assignment and a step by step! It would be much appreciated!
"In this assignment you will become familiar with file I/O by reading and writing files using the C++ fstream library. This library allows you to use the familiar >> and << operators for input and output on files.
You can find examples for using the fstream library in Chapter 6 of this Zybook.
To complete this assignment, satisfy the following requirements:
Your program should first prompt for an Old Testament reference: that is, a book, chapter and verse (each part on its own line).
You can expect that the Bible book name will be complete, not an abbreviation.
Two-part books (i.e. First Samuel & Second Samuel) will be input with "First" and "Second" spelled out.
Your program should search the provided file of Old Testament text (OT.txt) for the referenced verse.
If the verse is found, your program should print the verse to the screen and append it to an output file (called verses.txt).
If the verse is not found (e.g., the book name was misspelled or the chapter or verse reference was incorrect), then your program should report that the verse was not found, because the book, chapter or verse (whichever applies) is not in the Old Testament. In order for your assignment to be graded accurately, you will need format your "not found' output as illustrated below in the Examples."
Thanks!