Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Calculator (with buttons and crap like that)
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xtreemboarder




PostPosted: Thu Nov 17, 2005 12:20 am   Post subject: Calculator (with buttons and crap like that)

Made this a long time ago...

enjoy Smile



calculator_version101.t
 Description:

Download
 Filename:  calculator_version101.t
 Filesize:  5.03 KB
 Downloaded:  422 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
beard0




PostPosted: Thu Nov 17, 2005 12:28 am   Post subject: (No subject)

It crashes if you hit two operators in a row.

After returning a result, if an operator is the next key pressed, it should use the result as the first number (as it does), however, if a number is pressed, it should clear the result, and start over.

It should not allow the user to enter more than one decimal.

If the user enters a number, followed by equals, with no operator, it should return the number, not 0.

It should omit leading 0s.

Generally, numbers are right alligned.

It's a start.
Paul




PostPosted: Sun Nov 20, 2005 11:57 am   Post subject: (No subject)

You can fix alot of that just with a "SYNTAX ERROR" Razz
beard0




PostPosted: Mon Nov 21, 2005 9:12 am   Post subject: (No subject)

Paul wrote:
You can fix alot of that just with a "SYNTAX ERROR" Razz


A syntax error means it doesn't even run. It ran. Those are logical errors.
Clayton




PostPosted: Wed Jan 11, 2006 6:39 pm   Post subject: (No subject)

can make this better by using GUI buttons, and what is the maple leaf for?i dont quite understand that but oh well not bad but there are some weak spots such as your calculator should be able to handle more than one operation in a row instead of just doing the last two other than that just needs some more user friendly features
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: