All in C++
12. DAY
Define a class named Day that represents the day of the week. Seethe client.cpp to discover the
interface for the class.
//HeaderFile
#ifndef P1_H
#define P1_H
#include <sstream>
#include <iomanip>
#include <string>
#include <stdexcept>
#include <cctype>
#include <cmath>
using namespace std;
// Define your class here
#endif
//p1.cpp file
// Implement your class here
//Client(used for testing the code
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
#include “p1.h”
int main()
{
cout << “Exercising the Day class” << endl;
cout << string(50, ‘-‘) << endl;
cout << fixed << setprecision(2);
cout << “Print the days of the week” << endl;
for (int i = 0; i < 6; i++)
cout << ” ” << i << “. ” << Day(i) <<endl;
cout << “n+= operator
PayPal Gateway not configured
PayPal Gateway not configured