Commit 75079868 authored by Brandon Reid's avatar Brandon Reid

autosave

parent fb2fbf14
......@@ -23,7 +23,7 @@ int yearPrompt () { // empty argument
if (isLeap(year)) { // Tells user if it is a leap year of not
cout << "This is a leap year." << endl;
} else if (!isLeap(year)) {
cout << "This is not a leap yar." << endl;
cout << "This is not a leap year." << endl;
}
if (year > 0 && year < 9099) {
return year;
......@@ -36,7 +36,7 @@ int yearPrompt () { // empty argument
string monthPrompt () {
string month;
do {
cout << "Enter month: ";
cout << "Enter month (ex.April, May): ";
cin >> month;
if (month == "January" || month == "February" || month == "March" || month == "April" || month == "May" || month == "June" || month == "July" || month == "August" || month == "September" || month == "October" || month == "November" || month == "December") {
return month;
......
......@@ -33,8 +33,7 @@ pair<double,double> longAndLat () {
tempPair.second = stod(temp2);
coordinateVector.push_back(tempPair); //ads latitudes and longitutes to coordinate vector
}
// TODO Print the cities
do {
cout << endl << "In the list about, which city do you live in/live near? (enter number): ";
if (!(cin >> cityNum)) { // validates that numbers were entered and checks input
......
1. Seattle, Washington. 47.6062° N. 122.3321° W
2. Boise, Idaho. 43.6150° N. 116.2023° W
3. Helena, Montana. 46.5891° N. 112.0391° W
4.Saint Paul, Minessota. 44.9537° N. 93.0900° W
5. Madison, Wisconson. 43.0731° N. 89.4012° W
6. New York, New York. 40.7128° N. 74.0060° W
7. Augusta, Maine. 44.3106° N. 69.7795° W
8. Los-Angeles, California. 34.0522° N. 118.2437° W
9. Salt Lake City, Utah. 40.7608° N. 111.8910° W
1. Seattle, Washington. 47.6062° N. 122.3321° W
2. Boise, Idaho. 43.6150° N. 116.2023° W
3. Helena, Montana. 46.5891° N. 112.0391° W
4. Saint Paul, Minessota. 44.9537° N. 93.0900° W
5. Madison, Wisconson. 43.0731° N. 89.4012° W
6. New York, New York. 40.7128° N. 74.0060° W
7. Augusta, Maine. 44.3106° N. 69.7795° W
8. Los-Angeles, California. 34.0522° N. 118.2437° W
9. Salt Lake City, Utah. 40.7608° N. 111.8910° W
10. Topeka, Kansas. 39.0473° N. 95.6752° W
11. Raleigh, North Carolina. 35.7796° N. 78.6382° W
12. Austin, Texas. 30.2672° N. 97.7431° W
......
......@@ -17,7 +17,8 @@ int main () {
int minuteInput = 0;
pair <double,double> AltAndAziPair;
pair <double, double> longAndLatPair;
vector <pair<double,double>> window;
vector <pair<double,double>> coordinates;
cout << "==============Welcome to the Star-Gazer v 1.0==============" << endl;
do {
......@@ -60,7 +61,10 @@ int main () {
cout << "The algorithm function, when its January 27, 2017, at 5:45:54 pm, at a lat and long of -46,89 and when looking at the sky at 20, 270 (in horizontal coordinates), gives: " << endl
<< "Right ascention of: " << returnValue.first << " and a declination of: " << returnValue.second << endl;
printConstellation(constellationCoordinates(), viewFinder(returnValue));
window = viewFinder(returnValue);
coordinates = constellationCoordinates ();
printConstellation(coordinates, window);
} while (false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment