Click here for AnswerPool.com Home page


Google

    AnswerPool.com  Hop To Forum Categories  Computers  Hop To Forums  Computer Resources    Visio Basic

Moderators: Dwight
Go
Post
Find
Notify
Tools
Reply
  
  Login/Join 
Posted
I need help with these codes, Input Fahrenheit and convert to Celsius/Centigrade

Plato says the ideal wife's age is 1/2 the mans plus 7yrs. Accept a man's age as input and give his ideal wife's age.

Tipping should be approx. 15%-20%. Accept the pre-tax total from the user and calculate both 15% and 20% tips
 
Posts: 5 | Location: Lewis Run, Pa. US | Registered: 11-14-03Reply With QuoteEdit or Delete MessageReport This Post
Diamond Enthusiast

Posted Hide Post
Wildflower, you really should post this as "Visual" Basic in the future since there is such a thing as "Visio" also which is different. Smile

Degrees F to degrees C:

Need one input box and an output:
(after initialization)

numFahrenheit = Val(Text1.text)
numCelsius = (numFahrenheit - 32)/1.8
Picture1.Print numCelsius


Ideal Age

numManAge = Val(Text1.text)
numWifeAge = numManAge / 2 + 7
Picture1.Print numWifeAge


Tips:

numSubTotal = Val(Text1.text)
numFifteenpercent = numSubTotal * 1.15
numTwentypercent = numSubTotal * 1.20

Picture1.Print "Subtotal plus 15% tip is: " + numFifteenpercent

Picture1.Print "Subtotal plus 20% tip is: " + numTwentypercent

(The code for printing is off the top of my head, so you should check your documentation for syntax, I think its close but been a while since I've done VB.)
 
Posts: 5121 | Location: Native Floridian misplanted | Registered: 06-08-02Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
KWLL
Thank-you again. The first one worked very well and I figured out the others except for the Plato one. It is starting to be fun, but now we're going to start on something different.

Thanks again

Wildflower
 
Posts: 5 | Location: Lewis Run, Pa. US | Registered: 11-14-03Reply With QuoteEdit or Delete MessageReport This Post
Diamond Enthusiast

Posted Hide Post
Wildflower, when you start getting into control statements and all that don't hesitate to come back and ask. Smile
 
Posts: 5121 | Location: Native Floridian misplanted | Registered: 06-08-02Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

    AnswerPool.com  Hop To Forum Categories  Computers  Hop To Forums  Computer Resources    Visio Basic

© 2002-2008 AnswerPool.com



Visit DiscussionPool.com!