Course Solutions Uncategorized (Solved) : Include Include Include Include Include Include Include Include Include Include Include Us Q30644806 . . . .

(Solved) : Include Include Include Include Include Include Include Include Include Include Include Us Q30644806 . . . .

 

#include<iostream>
#include<string>
#include<conio.h>
#include<limits>
#include<Windows.h>
#include<fstream>
#include <cstdlib>
#include<cctype>
#include<set>
#include<string>
#include<chrono>

using namespace std;

int month = 0, year = 0;
char separator;

int main()
{
DATE: do
{
cout << “Please enter card expiration date in (mm/yy) format:”;
while (!(cin >> month >> separator && separator== ‘/’ && cin >> year))
{
cout << “Please enter in format(yy/mm) “;
cin.clear();
#undef max
cin.ignore(numeric_limits<streamsize>::max(), ‘n’);
if (cin >> month >> separator && separator ==’/’ && cin >> year)
{
if (month <= 0 || month > 12)
{
cout << “Invalid Month!” << endl;
cout << endl;
goto DATE;
}
}
}
} while (!(month > 0 && month == 12));

system(“pause”);
return 0;
}

How do I correct this coding?

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Bash Script File Called Vimrc Set 1 Colorscheme Look Options Http Vimcolorscom 2 Bg Backgr Q30353013 . . . .(Solved) : Bash Script File Called Vimrc Set 1 Colorscheme Look Options Http Vimcolorscom 2 Bg Backgr Q30353013 . . . .

<p><strong>Bash Script</strong></p><p>In a file called <strong>.</strong><strong>vimrc</strong>,set:<br/>1. colorscheme (look here for some options:http://vimcolors.com)<br/>2. the bg (background) of your terminal to dark (since it probablyis)<br/>3. tabstop to 2<br/>4. turn on line numbers</p><p>Provide