Answer:
#include<iostream>
#include<cmath>
#include <ctime>
using namespace std;
int main()
{
time_t t = time(NULL);
tm* timePtr = localtime(&t);
cout << "seconds= " << (timePtr->tm_sec) << endl;
cout << "minutes = " << (timePtr->tm_min) << endl;
cout << "hours = " << (timePtr->tm_hour) << endl;
cout << "day of month = " << (timePtr->tm_mday) << endl;
cout << "month of year = " << (timePtr->tm_mon)+1 << endl;
cout << "year = " << (timePtr->tm_year)+1900 << endl;
cout << "weekday = " << (timePtr->tm_wday )<< endl;
cout << "day of year = " << (timePtr->tm_yday )<< endl;
cout << "daylight savings = " <<(timePtr->tm_isdst )<< endl;
cout << endl;
cout << endl;
cout << "Date " <<(timePtr->tm_mday)<<"/"<< (timePtr->tm_mon)+1 <<"/"<< (timePtr->tm_year)+1900<< endl;
cout << "Time " << (timePtr->tm_hour)<<":"<< (timePtr->tm_min)<<":"<< (timePtr->tm_sec) << endl;
return 0;
}
Explanation:
<u>Answer</u>:
<em>B. Morals are individually held beliefs, while ethics are imposed by an
</em>
<em>organization.</em>
<u>Explanation</u>:
<em>Morals are the beliefs designed or created by group of people.</em> It is concerned whether an action is right or wrong. It is basically a lesson learned from a situation or a story. <em>It also convey truth. </em>
Ethics are set of rules designed by <em>external agent or organization</em> and it differs from place to place but they have basic ethics in common.
<em>It is a branch of philosophy. These are also not relative to the situation. Both moral and ethics are used interchangeably.
</em>
The error message gives it away "#DIV/0!". A division by zero error has occurred, and and error is displayed because dividing by zero is mathematically impossible.
Answer:
can u show a picture??? or something