Skip to content

Instantly share code, notes, and snippets.

View Amali24's full-sized avatar

Andy Thomas Amali24

  • Boston, MA
View GitHub Profile
@Amali24
Amali24 / TimeCalculator.cpp
Last active June 8, 2016 23:30
CIT-237 Lab 4.1 - Given Seconds, calculates total minutes, hours, and days (and leftover seconds)
// 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
@Amali24
Amali24 / isTriangle().cpp
Last active June 8, 2016 22:29
Quick C++ Project for CIT-237 at BHCC
#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