Skip to content

Program that reads a file with some specifications about a solar system and returns some results.

License

Notifications You must be signed in to change notification settings

Pendulun/SolarSystem

Repository files navigation

SolarSystem

Program that reads a file with some specifications about a solar system and returns some results.

The commands on file:

defastro: indicates that a new astro is about to be defined

Estrela -name of star-/ Planeta -name of planet- / Lua -name of moon- : self explanatory

If it is a moon (Lua):

Orbita -name of planet that it orbits- You have to define the planet before its moon.

Temperatura -integer temperature of the new astro at any pattern you want (keep it the same for every astro in file: Celcius, Fahrenheit, Kelvin)-

Raio -Radius of the new astro (integer)-

Gravity -floating point (number with a dot like 2.1 or 546.743) indicating the gravity of the astro-

Gasoso -"True" or "False" indicating if the astro is gaseous(True) or not(False)-

Example of file is named astros3.txt in this repository.

About

Program that reads a file with some specifications about a solar system and returns some results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages