ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Paying Assembly Language Homework


  • Please log in to reply
Paying Assembly Language Homework

#1

warriorwalt1
warriorwalt1
    Offline
    2
    Rep
    0
    Likes

    Member

Posts: 25
Threads: 8
Joined: Sep 14, 2015
Credits: 0
Eight years registered
#1

Hey if anyone is interested in making a little easy side money I am spread pretty thin this semester. This is my current assignment if you think you can do it hit me up and we can discuss pricing and future projects thanks.

"Convert the following code to assembly language and run with compiler. Run this code on input 50, 48, 52, -10 and 0."
"Make sure code is giving no output on negative numbers as age can not be less than 0. (It should ask for another number if the last number was negative.)"

''int main()  {

    int age;                        
     printf( "Please enter your age" );
    scanf( "%d", &age );                 //This line is same as cin<<age;
    if ( age < 50 ) {               
        printf ("You are pretty young!\n" );                                            //print 1 in assembly
    }
    else if ( age == 50 ) {         
        printf( "You are old\n" );                                                                //print 2 in assembly
    }
    else {
        printf( "You are really old\n" );                                                //print 3 in assembly
    }
  return 0;
}''


  • 0

#2

DoNotAskMeWhy
DoNotAskMeWhy
    Offline
    80
    Rep
    155
    Likes

    UwU

Posts: 6842
Threads: 50
Joined: Jul 03, 2018
Credits: 0

Five years registered
#2

I can show you a trick on how you can do it yourself without knowing assembly. 


  • 0

Special thanks to Harmony and DratLoodi


#3

warriorwalt1
warriorwalt1
    Offline
    2
    Rep
    0
    Likes

    Member

Posts: 25
Threads: 8
Joined: Sep 14, 2015
Credits: 0
Eight years registered
#3

I can show you a trick on how you can do it yourself without knowing assembly.

tell me more sir

  • 0

#4

DoNotAskMeWhy
DoNotAskMeWhy
    Offline
    80
    Rep
    155
    Likes

    UwU

Posts: 6842
Threads: 50
Joined: Jul 03, 2018
Credits: 0

Five years registered
#4

tell me more sir

Add me on DIscord


  • 0

Special thanks to Harmony and DratLoodi


#5

warriorwalt1
warriorwalt1
    Offline
    2
    Rep
    0
    Likes

    Member

Posts: 25
Threads: 8
Joined: Sep 14, 2015
Credits: 0
Eight years registered
#5
Still looking for help thanks

  • 0


 Users browsing this thread: