zjxfly's profile西北的天空PhotosBlogLists Tools Help

Blog


    April 15

    呵呵,这两天遇到问题了!关于物流软件技术的算数表达式!

    大家好呀!
    各路神仙请来出格注意!
    假设有四个固定变量:a,b,c,d这四个变量为固定的数值也就是金额!现在要求一个表达式完成一下运算:
    当我物体的重量在变化的时候
    计算出金额
     
    物体的重量是500克为标准
    每增加500克要在金额上续加上上面的固定数字变量,这里要说的是超过1克也是要增加一个固定金额数。
    比如点击北京后会传递过来固定数字变量“b”
    中量是2340克
    那么要计算这个物体的到北京的金额是多少!
    假设重量为变量“g”
    金额为变量“E”
     
    那么这个算数表达式怎么写呢!要用一个完成计算!
     
    这里要说明的是在软件中只能用鼠标点击选择某个地区获得那个相应的固定的数字(a,b,c,d)
    只需要这一个操作就完成“E”的运算!
    那个重量是自动获得也就是“g”
     
    呵呵,请路过的朋友们看看!
     

    Comments (2)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    zjxfly zjxwrote:
    n = g - 500
       If n = 0 Or n < 500 Then
          E = 12将结果金额赋值,12是基础金额就是在500克内是12
       Else
       If g > 500 And g < 1000 Then
       E=12+b
       Else
       If n > 0 Then
       e = n / 500
       For i = 1 To 80‘电子秤最多有80个续重就是40公斤
          If e > 1 And e < i + 1 Then
           E= 12 + (i + 1) * b       End If
       Next
       End If
       End If
       End If
    May 19
    zjxfly zjxwrote:
    呵呵,搞定了!
    a=20
    b=30
    c=40
     
    n = g - 500
       If n = 0 Or n < 500 Then
          E = 12将结果金额赋值,12是基础金额就是在500克内是12
       Else
       If g > 500 And g < 1000 Then
       E=12+b
       Else
       If n > 0 Then
       e = n / 500
       For i = 1 To 80‘电子秤最多有80个续重就是40公斤
          If e > 1 And e < i + 1 Then
           E= 12 + (i + 1) * 3
           End If
       Next
       End If
       End If
       End If
     
    May 19

    Trackbacks

    The trackback URL for this entry is:
    http://zjxfly.spaces.live.com/blog/cns!5F6B675AF6EDC71D!145.trak
    Weblogs that reference this entry
    • None