The Cellar

The Cellar (http://cellar.org/index.php)
-   Technology (http://cellar.org/forumdisplay.php?f=7)
-   -   Writing Programs (http://cellar.org/showthread.php?t=30523)

brandon4117 11-23-2014 05:04 AM

Writing Programs
 
Hey all.
I'm making this thread at 5 AM while I'm sleep deprived to say I finally wrote my first program!
Well, somewhat noteworthy one at least.
It's nothing incredible but it's a calculator with a bit more advanced options than a regular one.
I've added multiplication, division, addition, subtraction to it, as well as a menu to pick these options, and soon I'll be adding sections of code to allow for exponents, longer equations, and a menu to solve for answers to certain equations for specific problems.

Since I'm incredibly new to programming I just figured I'd post about it since I'm pretty happy I was able to write it. Took 103 lines of code though, yeesh.
Anyone else here program? If so, what have you written? And in what language?
I'm curious. Also, anyone have a recommendation as to what I should add to this calculator?

DanaC 11-23-2014 05:31 AM

That's pretty awesome brandon!

Fraid the only programmes I ever wrote were in Commodore Basic back in the Jurassic Era :p And that was with guidance from the 'Teach Yourself Commodore Basic For the Vic20' Book *grins*

Undertoad 11-23-2014 09:32 AM

If you're in North America, the next move would be to add a Fahrenheit to Celsius converter (and vice versa). That's like 5 more lines.

xoxoxoBruce 11-23-2014 09:40 AM

Way to go, Brandon, but be careful. I wrote a program once but Aaron Spelling stole it. :haha:

Pamela 11-23-2014 05:56 PM

It's a good feeling, isn't it? When you complie and execute your own code and it works!

I remember my early programming in various flavors of BASIC, on TRS-80s, Franklin ACE 1000s and a Sperry UTS-40. My favorite was CBASIC, which compiled into an intermediate assembly file, which in turn compiled into a regular executable. I always insisted in turning in my comp sci homework listed in CBASIC. Printed on greenbar 132 col paper.

tw 11-23-2014 05:58 PM

Quote:

Originally Posted by Pamela (Post 914789)
My favorite was CBASIC, which compiled into an intermediate assembly file, which in turn compiled into a regular executable.

P code. Actually, Microsoft compilers today do it that way.

brandon4117 12-12-2014 08:49 AM

Quick update, but I've created a few more simple programs that deal with calculating percentages and giving a letter grade, and a few other math programs. I tried to make a mini game but due to lack of creativity I haven't done one yet.
I'm just getting around to the Fahrenheit to celsius bit though for the calculation program I'm working on; I've been too lazy.


All times are GMT -5. The time now is 10:29 PM.

Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.