
Emmma W.
asked 07/29/21Sir,Kindly slove the link question so that i can copy paste.It will be great help of you.
https://8dfd4c4f-a-686c9e04-s-sites.googlegroups.com/a/northsouth.edu/cse225/Lab11.pdf?attachauth=ANoY7crZMOINToW92u5TkBfqP75IakaUMX6cXjY2BKY2K_UmLLeyRlInOTDl_ixbjHeGOkKrxFI8CZd_zKdcAaTZZGPe5T96s4CUWk18fO88_B5IDktEHuTmFKhyIlZsWRh8KlAObZxqn3b7zUga-TeAEo1PmfPhq6N3UZy_RJmmICNrwnojaKjX_rHBz7JQo9X7Uv0aqrNe&attredirects=0
1 Expert Answer

Patrick B. answered 07/30/21
Math and computer tutor/teacher
typedef
class TimeStamp
{
protected:
int sec;
int min;
int hour;
public:
TimeStamp() { sec=min=hour=0; }
TimeStamp(int s, int m, int hr) { sec=s; min=m; hour=hr; }
friend ostream& operator<<(ostream& os, const TimeStamp& t)
{
os << t.sec<< ':' << t.min << ':' << t.hour <<endl <<flush;
return os;
}
bool operator<(TimeStamp t)
{
bool boolReturn;
if (this->hour != t.hour)
{
boolReturn =this->hour<t.hour;
}
else
{
if (this->min!=t.min)
{
boolReturn=this->min <t.min;
}
else
{
boolReturn =this->sec<t.sec;
}
}
}
bool operator==(TimeStamp t)
{
return(
(this->hour==t.hour)&& (this->min==t.min) && (this->sec==t.sec)
);
}
} * TTimeStamp;
#define TIME_STAMP_SIZE (sizeof(TimeStamp))
int main()
{
int times[][3] = { {15,34,23},
{13,13,2},
{43,45,12},
{25,36,17},
{52,02,20}
};
TTimeStamp timeStamps = new TimeStamp[5];
SortedType<TimeStamp> sortedTimeList;
for (int iLoop=0; iLoop<5; iLoop++)
{
timeStamps[iLoop]=TimeStamp(times[iLoop][0],times[iLoop][1],times[iLoop][2]);
sortedTimeList.InsertItem(timeStamps[iLoop]);
}
TimeStamp targetTimeStamp(25,36,17);
sortedTimeList.DeleteItem(targetTimeStamp);
int N=sortedTimeList.LengthIs();
sortedTimeList.ResetList();
for (int iLoop=0; iLoop<N; iLoop++)
{
TimeStamp curTimeStamp;
sortedTimeList.GetNextItem(curTimeStamp);
cout <<curTimeStamp;
}
}
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Patrick B.
First, the records are sorted by hour, then minute, then second. The sample output is INCORRECT!!!! Next, you are asked to code the main() driver. All you have to do is look at the public methods, the functions declared as PUBLIC in the class and then try to figure out how to follow the given directions07/30/21