Okay, I wanted to know how to bring the user back to the options of entering information
about the quantity, ISBN, etc, depending on whether or not the user selects
the option of Yes or No after running the program the first time. The user should be able to select Yes or No to re-run the program again if they would like.
My Question: How do you get the program to return the options of book title, quantity,
ISBN, etc, once the user has selected (Yes);furthermore, how do you get the program
to exit the options once the user selects (No).

Code Snippet
/* Demonstration of getline with strings combined with cin for numbers
and string resizing */

#include <iostream>
#include <iomanip>
#include <string> // Don't forget this #include

using namespace std;

int main()
{

int quantity = 0; //It's a good habit to initialize your variables
double price = 0.0;
string title = " ";
string ISBN = " ";
string dAte = " ";

//INPUT---------------------------------------------------------------------------------------

cout << "Please enter a Book Title: ";
getline(cin, title); // Use getline to input a full string including spaces

cout << "\nPlease enter a Quantity: ";
cin >> quantity; // Use cin to input numbers
cin.ignore(); // This line tells the program to ignore any input
// that may be "leftover" from the cin statement. cin
// will leave behind a \n when the enter key is hit.
// Therefore, when using cin and getline together,
// you must use cin.ignore() after a cin statement to
// ensure any future getlines work propoerly.

cout << "\nPlease enter an ISBN: ";
getline(cin, ISBN); // This getline will not work without the cin.ignore() above

cout << "\nPlease enter a Price: ";
cin >> price;
cin.ignore();

cout << "\nPlease enter a DATE: ";
getline(cin, dAte);

//OUTPUT-----------------------------------------------------------------------------------------

cout << setprecision(2) << fixed << showpoint << right; //Formatting

//The following output is formatted but does not check for excessive string length like
//long titles

cout << "\n\n\t TITLE" << "\t\t\t ISBN" << "\t DATE" << " QUANTITY" << " PRICE" << endl;
cout << " -----------------------------------------------------------------------------" << endl << endl;
cout << setw(17) << title << setw(22) << ISBN << setw(13) << dAte << setw(8) << quantity << setw(12) << price << endl;

//The following output is formatted and does check for excessive string length like
//long titles

if (title.length() > 24) //You may check the length of a string including spaces this way
title.resize(24); //If the string is too long, you can truncate it this way
if (ISBN.length() > 19)
ISBN.resize(19);
if (dAte.length() > 12)
dAte.resize(12);
if (quantity > 500)
{
quantity = 500;
cout << "\nYou cannot order over 500 of the same book." << endl;
}
if (price > 1000)
{
price = 1000;
cout << "\nPlease recheck the price" << endl;
}
cout << " -----------------------------------------------------------------------------" << endl << endl;

// My Problem is here, how do I get this cout option initialized so
// that it works and takes the user back to the prompts of entering ISBN, DATE,
// PRICE, QUANTITY, etc.
// While also giving the user the No (N) option to exit the program entirely.
cout << "Would you like to make another transaction? Y/N\t\n";
//cin >>

return 0;
}