473,378 Members | 1,280 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

creating a calculator in VB

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!
Nov 20 '05 #1
10 3325
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


Nov 20 '05 #2
* "collegestudent" <se***********@hotmail.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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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!
Nov 20 '05 #4
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "collegestudent" <se***********@hotmail.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).
Nov 20 '05 #5
* "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>
Nov 20 '05 #6

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!
Nov 20 '05 #7
* College Student <se***********@hotmail.com> 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>
Nov 20 '05 #8
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" <se***********@hotmail.com> wrote in message news:<09****************************@phx.gbl>...
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!

Nov 20 '05 #9
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!
Nov 20 '05 #10
try http://www.delphipages.com/result.cfm?ID=3482

College Student <se***********@hotmail.com> wrote in message news:<e1**************@TK2MSFTNGP09.phx.gbl>...
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!

Nov 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: steveH | last post by:
Hi, I'm trying to solve a problem for a user which I can neither reproduce or explain. Here goes in the hope that someone else may have experienced the same. I make two attempts to create the...
6
by: Rafael | last post by:
Hi Everyone, I need some help with my calculator program. I need my program to do 2 arguments and a 3rd, but the 3rd with different operators. Any help would be great. Here is my code.... ...
3
by: Paul | last post by:
I want to make a simple calculator program but dont know where to get started. This is not GUI but a simple terminal program. It would get input like this Enter number: 5 + 10
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
19
by: TexasNewbie | last post by:
This was originally just a calculator without a decimal point. After I added the decimal, it now tells me invalid second number. //GUI Calculator Program import javax.swing.*; import...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
3
by: itsmichelle | last post by:
This is a very primative code of a java swing calculator. I have assigned all the number buttons and the operator buttons and I can add, subtract, multiply, and divide two numbers together. However,...
3
by: mandy335 | last post by:
public class Calculator { private long input = 0; // current input private long result = 0; // last input/result private String lastOperator = ""; // keeps track of...
1
AaronL
by: AaronL | last post by:
Hello, First I would like to say thank you all for your help in the past. I am stumped again. I am creating an e-commerce system and I want to be able to upload images to the server and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.