This is my first real program i still have alot of work b4 i would call it a complete program(font color, bgcolor……that sorts) but it does work (thanx to hartnell) so run it and tell me what you think:
Print " Welcome to Simple Conversion Utility(version0.1b)"
Print " Developed by: PhatDawg Software Development Te(I)am (PDSDT)"
Locate 11
Print "This program was designed to help convert weights and measurements"
Locate 23, 27
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
main:
Locate 4
Print "Choose form to convert from by pressing one of the following:"
Print "Type the number '1' for Pounds(lbs)"
Print "Type the number '2' Ounces(oz)"
Print "Type the number '3' for Grams(gr)"
Print
Print "Then Press [enter] on your keyboard"
Print
Dim As Integer choice, lbs, oz, gr
Dim As Double l, o, g
Dim new As String
Input "Please make a choice:"; choice
If choice = 1 Then
Input "How many pounds?"; lbs
Goto conv1
Elseif choice = 2 Then
Input "How many ounces?"; oz
Goto conv2
Elseif choice = 3 Then
Input "How many grams?"; gr
Goto conv3
Else
Cls
Print "Please enter either: 1, 2, or 3"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto main
End If
lbs = oz * 16 = gr * 448
oz = lbs / 16 = gr * 28
gr = oz / 28 = lbs / 448
conv1:
Print "What would you like to convert to? "
Print "Type the number '1' for Pounds(lbs)"
Print "Type the number '2' Ounces(oz)"
Print "Type the number '3' for Grams(gr)"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:"; l
If l = 1 Then
Print "Total is: "; lbs * 1
Elseif l = 2 Then
Print "Total is: "; lbs * 16
Elseif l = 3 Then
Print "Total is: "; lbs * 448
Else
Cls
Print "Please enter either: 1, 2, or 3"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto conv1
End If
While Inkey$ = "": Wend
Goto pass
conv2:
Print "What would you like to convert to? "
Print "Type the number '1' for Pounds(lbs)"
Print "Type the number '2' Ounces(oz)"
Print "Type the number '3' for Grams(gr)"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:"; o
If o = 1 Then
Print "Total is: "; oz / 16
Elseif o = 2 Then
Print "Total is: "; oz * 1
Elseif o = 3 Then
Print "Total is: "; oz * 28
Else
Cls
Print "Please enter either: 1, 2, or 3"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto conv2
End If
While Inkey$ = "": Wend
Goto pass
conv3:
Print "What would you like to convert to? "
Print "Type the number '1' for Pounds(lbs)"
Print "Type the number '2' Ounces(oz)"
Print "Type the number '3' for Grams(gr)"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:"; g
If g = 1 Then
Print "Total is: "; gr / 448
Elseif g = 2 Then
Print "Total is: "; gr / 28
Elseif g = 3 Then
Print "Total is: "; gr * 1
Else
Cls
Print "Please enter either: 1, 2, or 3"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto conv3
End If
While Inkey$ = "": Wend
Goto pass
pass:
Cls
Input "Would you like to do another conversion (Y/N)?"; new
If new = "y" Then
Goto main
Elseif new = "n" Then
Print "Thank you for using Sack Master! Goodbye.
Print "Press any key to exit"
Else
Print "Please push either Y/N and press enter"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto pass
End If
While Inkey$ = "": Wendp.s. im the only member of the development team so there is an "I" in team, as in team = I(me) just a little humor





