Muthair Saeed, Assignment Week 12
Muthair Saeed, Assignment Week 12
F18602030
if (*currentmonth == *expiration)
{
cout << "\n\nAccount Number = "<<*account << endl << "Enter Start Month = "<<
*startmonth << endl <<"Start Year = "<< *startyear <<endl<< "Number of Year Paid = "<<*yearspaid
<< endl;
cout << "\nMagazine Subscription is Ending Soon\n"<<endl << " You have only few issues
left, So renew now to continue reciving your Magazine\n";
}
else if (*currentmonth > *expiration)
{
cout << "\n\nAccount Number = " << *account << endl << "Enter Start Month = " <<
*startmonth << endl << "Start Year = " << *startyear << endl << "Number of Year Paid = " <<
*yearspaid << endl;
cout << "\nYour Subscription for this Magazine is Expired\n" << endl << "For
Resubscription and queries please contact us through Email.\n";
}
else
{
cout << "\n\nAccount Number = " << *account << endl << "Enter Start Month = " <<
*startmonth << endl << "Start Year = " << *startyear << endl << "Number of Year Paid = " <<
*yearspaid << endl;
cout << "Your Subscription is remaing for" << value << " months. Enjoy our service.\n";
}
}
int main(int argc, char* argv[])
{
cout << "\nMagazine Subscription\n";
int currentmonth;
int currentyear;
int account;
int startmonth;
int startyear;
int yearspaid;
int expiration;
// read in current month and year
readMonthYear(¤tmonth, ¤tyear);