Functions.h 1.16 KB
Newer Older
Elon Bontemps's avatar
Elon Bontemps committed
1
#include <string>
Brandon Reid's avatar
Brandon Reid committed
2
#include <vector>
Elon Bontemps's avatar
Elon Bontemps committed
3 4 5
using namespace std;


Brandon Reid's avatar
Brandon Reid committed
6
int yearPrompt (); // Prompts and checks year input
Elon Bontemps's avatar
Elon Bontemps committed
7

Brandon Reid's avatar
Brandon Reid committed
8
string monthPrompt (); // Prompts and checks month input
Elon Bontemps's avatar
Elon Bontemps committed
9

Brandon Reid's avatar
Brandon Reid committed
10
int dayPrompt (string month, int year); // Prompts and checks day input
Elon Bontemps's avatar
Elon Bontemps committed
11

Brandon Reid's avatar
Brandon Reid committed
12
int hourPrompt (); // Prompts and checks hour input
Elon Bontemps's avatar
Elon Bontemps committed
13

Brandon Reid's avatar
Brandon Reid committed
14
int minutePrompt (); // Prompts and checks minute input
Elon Bontemps's avatar
Elon Bontemps committed
15

Brandon Reid's avatar
Brandon Reid committed
16
double dateToHour (string month, int day, int hour, int minute); // Converts full date to hour
Elon Bontemps's avatar
Elon Bontemps committed
17

Brandon Reid's avatar
Brandon Reid committed
18
pair<double,double> altAndAziPair (); // Creates pair of alitutude and azimuth
Brandon Reid's avatar
Brandon Reid committed
19

Brandon Reid's avatar
Brandon Reid committed
20 21
bool isLeap (int year); // Bool check for leap year

Brandon Reid's avatar
Brandon Reid committed
22
vector <pair<double, double>> viewFinder (pair <double, double> centerPt); // function that returns the coordinates of the viewing window
Brandon Reid's avatar
Brandon Reid committed
23

Brandon Reid's avatar
Brandon Reid committed
24
vector <pair<double, double>> constellationCoordinates (); // function that stores the coordinates of all the constellations
Brandon Reid's avatar
Brandon Reid committed
25

Brandon Reid's avatar
Brandon Reid committed
26
void printConstellation (vector <pair<double,double>> constellationCoordinates, vector <pair<double,double>> window); // function to print the constellations
Brandon Reid's avatar
Brandon Reid committed
27

Brandon Reid's avatar
Brandon Reid committed
28
string constellationNamer (int index); // funciton to name all the constellations
Brandon Reid's avatar
Brandon Reid committed
29

Brandon Reid's avatar
Brandon Reid committed
30
void constellationOutputter (int index); // function to output the images of the constellations