Write a C++ program that prints out the following menu for a game (include the line of asterisks (*) on top and bottom). Try to use "endl" and the escape sequences \n, \t in your program.2 *********************************************** Welcome! Please choose a number from the following options: 1. Play the MAD LIBS game! 2. Play the CHOOSE YOUR OWN ADVENTURE game! 3. Exit *********************************************** Q#5: Write a C++ program to print out the following sentences. This is a practice of e

Respuesta :

tonb

Answer:

#include <iostream>

using namespace std;

const int NRSTARS=50;

int main() {

 cout << string(NRSTARS, '*') << endl;

 cout << "Welcome!\nPlease choose a number from the following options:" << endl;

 cout << "1. Play the MAD LIBS game!" << endl;

 cout << "2. Play the CHOOSE YOUR OWN ADVENTURE game!" << endl;

 cout << "3. Exit" << endl;

 cout << string(NRSTARS, '*') << endl;

}

Ver imagen tonb