Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
Project 3 Star Gazing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Walsh
Project 3 Star Gazing
Commits
fe09c644
Commit
fe09c644
authored
Mar 19, 2019
by
Brandon Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autosave
parent
36d28a36
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
45 deletions
+87
-45
Countries/countries.txt
Countries/countries.txt
+0
-39
Final stuff/Constellation.h
Final stuff/Constellation.h
+0
-0
Final stuff/Functions.cpp
Final stuff/Functions.cpp
+1
-1
Final stuff/Functions.h
Final stuff/Functions.h
+0
-0
Final stuff/Stars.cpp
Final stuff/Stars.cpp
+0
-0
Final stuff/Stars.h
Final stuff/Stars.h
+0
-3
Final stuff/coordinates.txt
Final stuff/coordinates.txt
+0
-0
Final stuff/countries.cpp
Final stuff/countries.cpp
+3
-2
Final stuff/countries.h
Final stuff/countries.h
+0
-0
Final stuff/countries.txt
Final stuff/countries.txt
+39
-0
Final stuff/main.cpp
Final stuff/main.cpp
+44
-0
No files found.
Countries/countries.txt
deleted
100644 → 0
View file @
36d28a36
Seattle, Washington. 47.6062° N. 122.3321° W
Boise, Idaho. 43.6150° N. 116.2023° W
Helena, Montana. 46.5891° N. 112.0391° W
Saint Paul, Minessota. 44.9537° N. 93.0900° W
Madison, Wisconson. 43.0731° N. 89.4012° W
New York, New York. 40.7128° N. 74.0060° W
Augusta, Maine. 44.3106° N. 69.7795° W
Los-Angeles, California. 34.0522° N. 118.2437° W
Salt Lake City, Utah. 40.7608° N. 111.8910° W
Topeka, Kansas. 39.0473° N. 95.6752° W
Raleigh, North Carolina. 35.7796° N. 78.6382° W
Austin, Texas. 30.2672° N. 97.7431° W
Miami, Florida. 25.7617° N. 80.1918° W
Bogota, Columbia. 4.7110° N. 74.0721° W
Brasilia, Brazil 15.8267° S. 47.9218° W
Buenos Aires, Argentina 34.6037° S. 58.3816° W
En Nahud, Sudan 12.6948° N. 28.4280° E
Agadez, Niger 16.9742° N. 7.9865° E
Kiffa, Mauritana 16.8740° N. 11.4339° W
Fes, Morocco 34.0181° N. 5.0078° W
Gamba, Gabon 2.7405° S. 10.0304° E
Kindu, Democratic Republic of the Congo 2.9492° S. 25.9231° E
Namacunde, Angola 17.3082° S. 15.8452° E
Lugela, Mozambique 16.3693° S. 36.7820° E
Ihosy, Madagascar 22.4009° S. 46.1279° E
Afif, Saudi Arabia 23.9052° N. 42.9125° E
Buky, Ukraine 49.0945° N. 30.4051° E
Paris, France 48.8566° N. 2.3522° E
Bor, Russia 56.3588° N. 44.0767° E
Nagpur, India 21.1458° N. 79.0882° E
Naggu, Tibet 31.4762° N. 92.0512° E
Bogd, Mongolia 44.6692° N. 102.1719° E
Quanzhou, Fujian 24.8741° N. 118.6757° E
Busan, South Korea 35.1796° N. 129.0756° E
Nagoya, Japan 35.1814° N. 136.9064° E
Kalgorie, Australia 30.7490° S. 121.4660° E
Coober Pedy, South Australia. 29.0139° S. 134.7533° E
Newman, Western Australia. 23.3593° S. 119.7350° E
Sydney, Australia 33.8688° S. 151.2093° E
\ No newline at end of file
Input
stuff/Constellation.h
→
Final
stuff/Constellation.h
View file @
fe09c644
File moved
Input
stuff/Functions.cpp
→
Final
stuff/Functions.cpp
View file @
fe09c644
#include "Functions.h"
#include "Stars.h"
#include "Constellation.h"
#include "Stars.h"
#include <string>
#include <iostream>
#include <vector>
...
...
Input
stuff/Functions.h
→
Final
stuff/Functions.h
View file @
fe09c644
File moved
Input
stuff/Stars.cpp
→
Final
stuff/Stars.cpp
View file @
fe09c644
File moved
Input
stuff/Stars.h
→
Final
stuff/Stars.h
View file @
fe09c644
...
...
@@ -12,9 +12,7 @@ const int ROW = 24;
const
int
COL
=
40
;
class
Stars
{
public:
void
CanisMajor0
();
void
Eridanius1
();
void
Gemini2
();
...
...
@@ -34,7 +32,6 @@ class Stars {
void
UrsaMajor16
();
private:
char
stars
[
ROW
][
COL
];
};
...
...
Countries
/coordinates.txt
→
Final stuff
/coordinates.txt
View file @
fe09c644
File moved
Countries
/countries.cpp
→
Final stuff
/countries.cpp
View file @
fe09c644
...
...
@@ -37,7 +37,7 @@ pair<double,double> longAndLat () {
// TODO Print the cities
do
{
cout
<<
"
Which city do you live in/live near?
: "
;
cout
<<
"
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
cerr
<<
"Error! Please enter a valid integar."
<<
endl
;
cin
.
clear
();
...
...
@@ -56,6 +56,7 @@ pair<double,double> longAndLat () {
}
void
printCities
()
{
cout
<<
endl
<<
endl
<<
"City list"
<<
endl
<<
"========"
<<
endl
;
char
contents
;
ifstream
fin
;
fin
.
open
(
"countries.txt"
);
...
...
@@ -65,6 +66,6 @@ void printCities () {
cout
<<
contents
;
fin
.
get
(
contents
);
}
fin
.
close
();
}
\ No newline at end of file
Countries
/countries.h
→
Final stuff
/countries.h
View file @
fe09c644
File moved
Final stuff/countries.txt
0 → 100644
View file @
fe09c644
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
13. Miami, Florida. 25.7617° N. 80.1918° W
14. Bogota, Columbia. 4.7110° N. 74.0721° W
15. Brasilia, Brazil 15.8267° S. 47.9218° W
16. Buenos Aires, Argentina 34.6037° S. 58.3816° W
17. En Nahud, Sudan 12.6948° N. 28.4280° E
18. Agadez, Niger 16.9742° N. 7.9865° E
19. Kiffa, Mauritana 16.8740° N. 11.4339° W
20. Fes, Morocco 34.0181° N. 5.0078° W
21. Gamba, Gabon 2.7405° S. 10.0304° E
22. Kindu, Democratic Republic of the Congo 2.9492° S. 25.9231° E
23. Namacunde, Angola 17.3082° S. 15.8452° E
24. Lugela, Mozambique 16.3693° S. 36.7820° E
25. Ihosy, Madagascar 22.4009° S. 46.1279° E
26. Afif, Saudi Arabia 23.9052° N. 42.9125° E
27. Buky, Ukraine 49.0945° N. 30.4051° E
28. Paris, France 48.8566° N. 2.3522° E
29. Bor, Russia 56.3588° N. 44.0767° E
30. Nagpur, India 21.1458° N. 79.0882° E
31. Naggu, Tibet 31.4762° N. 92.0512° E
32. Bogd, Mongolia 44.6692° N. 102.1719° E
33. Quanzhou, Fujian 24.8741° N. 118.6757° E
34. Busan, South Korea 35.1796° N. 129.0756° E
35. Nagoya, Japan 35.1814° N. 136.9064° E
36. Kalgorie, Australia 30.7490° S. 121.4660° E
37. Coober Pedy, South Australia. 29.0139° S. 134.7533° E
38. Newman, Western Australia. 23.3593° S. 119.7350° E
39. Sydney, Australia 33.8688° S. 151.2093° E
\ No newline at end of file
Final stuff/main.cpp
0 → 100644
View file @
fe09c644
#include <iostream>
#include "Functions.h"
#include "Constellation.h"
#include "countries.h"
#include <vector>
#include <string>
#include <utility>
using
namespace
std
;
int
main
()
{
//variables
string
monthInput
;
int
monthDay
=
0
;
int
yearInput
=
0
;
int
hourInput
=
0
;
int
minuteInput
=
0
;
pair
<
double
,
double
>
AltAndAziPair
;
pair
<
double
,
double
>
longAndLatPair
;
cout
<<
"==============Welcome to the Star-Gazer v 1.0=============="
<<
endl
;
do
{
yearInput
=
yearPrompt
();
monthInput
=
monthPrompt
();
monthDay
=
dayPrompt
(
monthInput
,
yearInput
);
hourInput
=
hourPrompt
();
minuteInput
=
minutePrompt
();
AltAndAziPair
=
altAndAziPair
();
printCities
();
longAndLatPair
=
longAndLat
();
}
while
(
false
);
//cout << dateToHour(yearInput, monthInput, monthDay, hourInput, minuteInput) << endl;
return
0
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment