The Cellar  

Go Back   The Cellar > Main > Technology

Technology Computing, programming, science, electronics, telecommunications, etc.

Reply
 
Thread Tools Display Modes
Old 11-23-2014, 05:04 AM   #1
brandon4117
Eavesdropper
 
Join Date: Mar 2014
Location: Minnesota.
Posts: 24
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?
brandon4117 is offline   Reply With Quote
Old 11-23-2014, 05:31 AM   #2
DanaC
We have to go back, Kate!
 
Join Date: Apr 2004
Location: Yorkshire
Posts: 25,710
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*
__________________
Quote:
There's only so much punishment a man can take in pursuit of punani. - Sundae
http://sites.google.com/site/danispoetry/
DanaC is offline   Reply With Quote
Old 11-23-2014, 09:32 AM   #3
Undertoad
Radical Centrist
 
Join Date: Jan 2001
Location: Cottage of Prussia
Posts: 31,013
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.
Undertoad is offline   Reply With Quote
Old 11-23-2014, 09:40 AM   #4
xoxoxoBruce
The future is unwritten
 
Join Date: Oct 2002
Posts: 69,404
Way to go, Brandon, but be careful. I wrote a program once but Aaron Spelling stole it.
__________________
Tony Montana, Tony Soprano, Walter White, Frank Underwood, and Donald Trump.
xoxoxoBruce is offline   Reply With Quote
Old 11-23-2014, 05:56 PM   #5
Pamela
Deplorable
 
Join Date: Oct 2013
Location: Dallas, TX
Posts: 762
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.
Pamela is offline   Reply With Quote
Old 11-23-2014, 05:58 PM   #6
tw
Read? I only know how to write.
 
Join Date: Jan 2001
Posts: 11,567
Quote:
Originally Posted by Pamela View Post
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.
tw is offline   Reply With Quote
Old 12-12-2014, 08:49 AM   #7
brandon4117
Eavesdropper
 
Join Date: Mar 2014
Location: Minnesota.
Posts: 24
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.
brandon4117 is offline   Reply With Quote
Reply

Tags
calculator, math, programming, technology


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:23 PM.


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