This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CIT237 Lab exercise 4.1: Time Calculator | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
// Constants | |
const int SECONDS_PER_MINUTE = 60; // Seconds in a minute | |
const int SECONDS_PER_HOUR = 3600; // Seconds in an hour | |
const int SECONDS_PER_DAY = 86400; // Seconds in a day |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// Validates numeric input | |
double getNum(); | |
// Validates character is 'y' or 'n' | |
char getYorN(); | |
// Returns true if three doubles make triangle, false otherwise |
NewerOlder