here is the text input version of my 1st program i think its a little more work(both for user and programmer) to type the abbr (lbs, oz…. etc) than to type the integer(1,2,3) but its less tacky, so i myself prefer the txt version! with that being said :
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 'lbs' for Pounds"
Print "Type 'oz' Ounces"
Print "Type 'gr' for Grams"
Print
Print "Then Press [enter] on your keyboard"
Print
Dim As Double p, z, r
Dim As String choice, l, o, g, y, n, new
Input "Please make a choice:", choice
If choice = "lbs" Then
Input "How many pounds?", p
Goto conv1
Elseif choice = "oz" Then
Input "How many ounces?", z
Goto conv2
Elseif choice = "gr" Then
Input "How many grams?", r
Goto conv3
Else
Cls
Print "Please enter either: lbs, oz, or gr"
Print "press any key to continue"
While Inkey$ = "": Wend
Cls
Goto main
End If
p = z * 16 = r * 448
z = p / 16 = r * 28
r = z / 28 = p / 448
conv1:
Print "What would you like to convert to? "
Print "Type 'lbs' for Pounds"
Print "Type 'oz' Ounces"
Print "Type 'gr' for Grams"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:", l
If l = "lbs" Then
Print "Total is: "; p * 1; "pounds"
Elseif l = "oz" Then
Print "Total is: "; p * 16; "ounces"
Elseif l = "gr" Then
Print "Total is: "; p * 448; "grams"
Else
Cls
Print "Please enter either: lbs, oz, or gr"
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 'lbs' for Pounds"
Print "Type 'oz' Ounces"
Print "Type 'gr' for Grams"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:", o
If o = "lbs" Then
Print "Total is: "; z / 16; "pounds"
Elseif o = "oz" Then
Print "Total is: "; z * 1; "ounces"
Elseif o = "gr" Then
Print "Total is: "; z * 28; "grams"
Else
Cls
Print "Please enter either: lbs, oz, or gr"
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 'lbs' for Pounds"
Print "Type 'oz' Ounces"
Print "Type 'gr' for Grams"
Print
Print "Then Press [enter] on your keyboard"
Print
Print
Input "Please make a choice:", g
If g = "lbs" Then
Print "Total is: "; r / 448; "pounds"
Elseif g = "oz" Then
Print "Total is: "; r / 28; "ounces"
Elseif g = "gr" Then
Print "Total is: "; r * 1; "grams"
Else
Cls
Print "Please enter either: lbs, oz, or gr"
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 S.C.U.! 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$ = "": Wendagain all criticism is welcome





