Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use the header file Snn.h to create a project implement the methods listed in th

ID: 3679660 • Letter: U

Question

Use the header file Snn.h to create a project

implement the methods listed in the header file

Write a main program to test your your methods implementation

_______________________Snn.h____________________________

#ifndef SSN_H

#define SSN_H

#include <iostream>

using namespace::std;

class Ssn {

   public:

       Ssn(void); // Default constructor

       Ssn(int, int, int); // 3 Argument constructor

       Ssn(const Ssn &); // Copy constructor

       Ssn(const char []); // pass a string as the parameter

                                       // of the form "456-92-1245" or "456921245"

       Ssn(int); // pass an int of the form 456921245

       //**************************************************************

       ~Ssn(void); // One and only destructor

       void setSsn( int f, int m, int l);

       void setSsn( int );

       void setSsn( const char []);

       int getSsn(void) const;

       void getSsn(char *) const; // form a string in caller's memory

       void print(ostream & w) const; // will print ddd-dd-dddd

       void inputN(void); // user types an integer

       void inputS(void); // user types a string

       void copyTo( Ssn & ) const; // copy invoking instance to parameter

       bool isSmaller(const Ssn & ) const; // return true if invoking instance

                                                           // is smaller than parameter

       static char getSEPARATOR(void); // static function to return separator char

   private:

       static const char SEPARATOR; // Class data, not member data

       int first,

           middle,

           last;

};

#endif

Explanation / Answer

//add.h #ifndef ADD_H_INCLUDED #define ADD_H_INCLUDED int add(int a, int b) ; /*
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote