Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.
  Answer this Question    Ask about Visual Basic    Ask about another Subject  
 

KhenAustria
Apr 28, 2009, 01:03 AM
what are the formula to make a scientific calculator using visual basic??????
formula for Sin, Int, Mod, And, Or, Lsh?????

Perito
Apr 28, 2009, 05:42 AM
There isn't a "formula" to make a scientific calculator. You have to write an entire program to do that.

If you were to write a four-function calculator (certainly not anywhere near a "scientific calculator"), you could drop four buttons on a form. Label the buttons "+", "-", "*", and "/". Put a text box in the area for an "accumulator". Drop ten additional buttons on the form and label them "0", "1", "2", "3", "4", "5", "6", "7", "8", "9". Double-click on each of the buttons to create "handlers" for each "on-click" event. Write code to add the numerals to the accumulator or to add, subtract, multiply, divide.

If you want a scientific calculator, you must also add buttons or handlers for the features you want (trigonometry, roots, powers, etc).

Sin is used to generate the sine function of an angle.
Int takes a real number and truncates it so as to remove the fractional part of the number.
Mod is for "Modular" arithmetic. It produces the "remainder" after dividing by a given number.
AND and OR are Boolean operators for Boolean algebra.
LSH is a "Left SHift" operator. This is a "bitwise" operator.