First up, did you know that spreadsheets can do what you want? They are quicker and easier to learn than a programming language and you can swap them with other Traveller enthusiasts quite easily. Look up
OpenOffice for a free, high end spreadsheet. You will find on this site numerous examples of ship builders, and world and character generators. A few years ago I built an unwieldy monster that spanned two spreadsheets and used it to
recreate turn by turn an entire sector for T4's Pocket Empires.
All the programming languages you are likely to be interested in are free. The easiest to get into are probably what are known as scripting languages. They are considered higher level languages as they abstract stuff away in order to be both easier to learn and make you more productive. Many start-ups do product prototypes in scripting languages. perhaps porting their code to something else only if it proves successful.
The three most popular scripting languages are Python, PERL and Ruby. Ruby is the newest and claims to take the best of Python and PERL. I like it as IMO its pretty intuitive. I like PERL too and Python less so, however Python is important as it is a mainstay for professional web developers.
https://www.ruby-lang.org/en/
robject's kind offer of PERL help on this forum is worth seriously considering and could possibly trump most other considerations. All the popular languages have vibrant coder communities, but some respondents can be impatient with new programmers meaning sometimes they are not the place to go when you are not sure what your question should be. You will hit this a lot when you start, often what you need isn't the answer, but help with figuring out the right question.
Javascript is good, but you can go further with a scripting language, faster. Java (not related to Javascript) is a mainstream language used for commercial software (reliable, stable, lot of programmers available), its good and often taught at universities, in part because industry wants more Java programmers, in part because it easily demonstrates many important principles in programming languages. Neither of which are important considerations in your case. Avoid C and especially avoid C++. The first involves something called a pointer and something else called memory management, both combined can age you rapidly as a new programmer. C++ is famous for allowing you to do anything, but is complicated enough that it takes you a long time to become proficient at anything.
If you are thinking about creating a web site, the most direct route may be to learn html, css and javascript. Scripting languages all create web sites, but there is an implicite need to already understanding the basics of these.
I'll add links here for
TutorialsPoint and
w3Schools. Both are good starting points.
Another link of note is
StackOverflow which is a fountain of knowledge regardless of which language you choose.
Start by using a text editor like Notepad. If you find yourself getting more into your programming, start looking at IDEs.
Eclipse is a standard one, but it has another steep learning curve that is likely not worth it until you get comfortable with your chosen language.
Hmmm, I've gotten a bit carried away... Hope this helps.
And just for fun,
13 languages you do not want to learn.