1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

a program for two decimals

Discussion in 'Assembly Language Programming (ALP) Forum' started by nkhosinathie, Aug 15, 2008.

  1. nkhosinathie

    nkhosinathie New Member

    Joined:
    Aug 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    please help me i'm doing this new assembly language,so i'm still new to this.i actually need a step by step method.this is the task i'm doing to know the language.i was actually doing c++ so i hav now
    changed to assembly.this is the task below,please anyone help.


    Write a program which accepts two decimal digits from its user, prints a new line on the display
    screen, and if the first digit is larger than the second, displays the average of the two digits (to the
    nearest whole number) and otherwise displays the square root of the product of the two digits (to
    the nearest whole number). Then the program should return to DOS control. Thus, if the user types
    93
    then the program displays
    6
    and if the user types
    39
    then the program displays
    5
    Hint: Think of easier way for square root calculation.
     
  2. Joshua

    Joshua New Member

    Joined:
    Aug 16, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    please help me i'm doing this new assembly language,so i'm still new to this.i actually need a step by step method.this is the task i'm doing to know the language.i was actually doing c++ so i hav now
    changed to assembly.this is the task below,please anyone help.


    Write a program which accepts two decimal digits from its user, prints a new line on the display
    screen, and if the first digit is larger than the second, displays the average of the two digits (to the
    nearest whole number) and otherwise displays the square root of the product of the two digits (to
    the nearest whole number). Then the program should return to DOS control. Thus, if the user types
    93
    then the program displays
    6
    and if the user types
    39
    then the program displays
    5
    Hint: Think of easier way for square root calculation.[/QUOTE]
    show me the coded program in the Assembly language
     
  3. Joshua

    Joshua New Member

    Joined:
    Aug 16, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Write a program which accepts two decimal digits from its user, prints a new line on the display
    screen, and if the first digit is larger than the second, displays the average of the two digits (to the
    nearest whole number) and otherwise displays the square root of the product of the two digits (to
    the nearest whole number). Then the program should return to DOS control. Thus, if the user types
    93
    then the program displays
    6
    and if the user types
    39
    then the program displays
    5
    Hint: Think of easier way for square root calculation.
     
  4. Joshua

    Joshua New Member

    Joined:
    Aug 16, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Write a program which accepts two decimal digits from its user, prints a new line on the display
    screen, and if the first digit is larger than the second, displays the average of the two digits (to the
    nearest whole number) and otherwise displays the square root of the product of the two digits (to
    the nearest whole number). Then the program should return to DOS control. Thus, if the user types
    93
    then the program displays
    6
    and if the user types
    39
    then the program displays
    5
    Hint: Think of easier way for square root calculation.

     
  5. Joshua

    Joshua New Member

    Joined:
    Aug 16, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0

    Write a program which accepts two decimal digits from its user, prints a new line on the display
    screen, and if the first digit is larger than the second, displays the average of the two digits (to the
    nearest whole number) and otherwise displays the square root of the product of the two digits (to
    the nearest whole number). Then the program should return to DOS control. Thus, if the user types
    93
    then the program displays
    6
    and if the user types
    39
    then the program displays
    5
    Hint: Think of easier way for square root calculation.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    Joshua, Please don't have the same post here and there as it could lead to banning your account.
     

Share This Page