PC Review


Reply
Thread Tools Rate Thread

creating a calculator in VB

 
 
collegestudent
Guest
Posts: n/a
 
      17th Dec 2003
hello there, I was wondering if anyone could give me some
advice on where to start on a project for college where I
have to design and create a hand-held calculator
simulation in Visual Basic.Thankyou!
 
Reply With Quote
 
 
 
 
Steven Smith
Guest
Posts: n/a
 
      17th Dec 2003
First of all grab yourself a real calculator and think
about what physical attributes a calculator posseses (i.e
a display and some buttons) then build your interface
based on the object your holding in your hands using VB's
controls to simulate the display and buttons.

Then just start to play about with the calculator to
discover exactly what happens when you interact with the
interface this will start to make you think about the
calculators logic (which isn't quite as simple as it
first appears to do it properly)

after that I would first tackle the problem of getting
the numbers to display correctly when you press the
corrosponding command buttons in your application

The next things you have to think about is storing the
values to be calculated, determining whether or not the
next digit pressed should be the first in the new string
(i.e after an operator button has been pressed *,+,-,\)
and also determining the operator which has been selected
then it's simply a matter of performing the calculation
on the stored values and displaying the result

after you've got to that stage the rest you will find
easy (just adding in the additional functionality such as
memory functions (more storage and retrieval from
variables) and thing's like percentage (y * 0.01) square
root & power (system.math)

I built one of these a few months back and could give the
code but hey who am I to spoil your fun

Good luck

Regards Steve




 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th Dec 2003
* "collegestudent" <(E-Mail Removed)> scripsit:
> hello there, I was wondering if anyone could give me some
> advice on where to start on a project for college where I
> have to design and create a hand-held calculator
> simulation in Visual Basic.Thankyou!


"hand-held" -- do you use the compact framework?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
College Student
Guest
Posts: n/a
 
      17th Dec 2003

Thankyou very much, that's a great help! I've started working on a bit
of code, I'll keep you posted on the finished results. Thanks again,
Rebecca.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      17th Dec 2003
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:brpbpn$61jnp$(E-Mail Removed)...
> * "collegestudent" <(E-Mail Removed)> scripsit:
> > hello there, I was wondering if anyone could give me some
> > advice on where to start on a project for college where I
> > have to design and create a hand-held calculator
> > simulation in Visual Basic.Thankyou!

>
> "hand-held" -- do you use the compact framework?


No, I think she just wants to emulate a graphing calculator (like a TI-89).


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th Dec 2003
* "Jeremy Cowles" <jeremy.cowles[nosp@m]asifl.com> scripsit:
>>> hello there, I was wondering if anyone could give me some
>>> advice on where to start on a project for college where I
>>> have to design and create a hand-held calculator
>>> simulation in Visual Basic.Thankyou!

>>
>> "hand-held" -- do you use the compact framework?

>
> No, I think she just wants to emulate a graphing calculator (like a TI-89).


Isn't a calculator without graphical display (plotting etc.) a
"hand-held calculator"?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
College Student
Guest
Posts: n/a
 
      17th Dec 2003

Hello again! no, I won't be using the compact framework i'm afraid!


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      18th Dec 2003
* College Student <(E-Mail Removed)> scripsit:
> Hello again! no, I won't be using the compact framework i'm afraid!


I read your other message, now it's clear for me what you want. If you
have any questions, feel free to post them in this newsgroup.

:-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Alexei Cioina
Guest
Posts: n/a
 
      18th Dec 2003
Hi,
try Cioina.DLL from TCioinaEval v.7.6.1
http://www.geocities.com/alexei_cioina/cioinaeval.html
You can build high quality calculator with Cioina.DLL in VB.


"collegestudent" <(E-Mail Removed)> wrote in message news:<097c01c3c484$090f9850$(E-Mail Removed)>...
> hello there, I was wondering if anyone could give me some
> advice on where to start on a project for college where I
> have to design and create a hand-held calculator
> simulation in Visual Basic.Thankyou!

 
Reply With Quote
 
College Student
Guest
Posts: n/a
 
      18th Dec 2003
i clicked the link, it told me 'no page to display'



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: creating a calculator Luke M Microsoft Excel Misc 0 15th Dec 2009 04:13 PM
creating a calculator =?Utf-8?B?bW1hY256?= Microsoft Excel Misc 1 23rd Oct 2007 04:07 PM
Creating a Calculator, please help :D Jack W via AccessMonster.com Microsoft Access Form Coding 6 27th Nov 2005 12:31 AM
Re: Creating a Price calculator BenjieLop Microsoft Excel New Users 0 14th Sep 2004 05:53 PM
Creating a Price calculator Don Microsoft Excel New Users 0 14th Sep 2004 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 AM.