hello can you helo

Discussion in 'Computer Support' started by hena, Jun 26, 2008.

  1. hena

    hena

    Joined:
    Jun 26, 2008
    Messages:
    1
    hello can you helo i am hena please if you can help me to solve this project
    project :
    1. Consider the C-like code below. What values do the last three lines print out? If it’s printing an address, tell me what variable’s address it is printing. Assume that the “print” statement “does what you’d expect” - it prints out the value of the address or variable after it.


    int p[20];
    for (i=0; i<20; i++)
    {p = i;}
    int *mypointer = &p[0];
    print *mypointer;
    print p;
    print p[3];


    2. Processor P1 has a 1GHz clock, and processor P2 has a 2GHz clock. They have completely different instruction sets, but they both execute exactly 1 instruction per cycle. Which processor has better performance and why? You must explain your answer to get credit.




    3. Write a MIPS assembly program that reads a string of integers and computes whether it (the number represented by the entire string) is prime or not. Assume the string of integers has no more than 5 digits.


    4. Write a MIPS assembly program that sorts, in ascending order, all of the characters that are provided as inputs (sorting is done by ASCII code). Assume you won’t get more than 100 characters. Some inputs may repeat. The pseudo-code for your program is below.

    Attached Files:

    hena, Jun 26, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MaK

    Pease helo

    MaK, Aug 16, 2003, in forum: Computer Support
    Replies:
    1
    Views:
    521
  2. Narciso Oadan

    helo

    Narciso Oadan, Feb 26, 2004, in forum: Computer Support
    Replies:
    2
    Views:
    644
    Pauline Johnson
    Feb 26, 2004
  3. bardhi Ndreca

    helo.

    bardhi Ndreca, Feb 22, 2005, in forum: Computer Support
    Replies:
    0
    Views:
    655
    bardhi Ndreca
    Feb 22, 2005
  4. Cherokee

    Question and helo

    Cherokee, Oct 26, 2006, in forum: Digital Photography
    Replies:
    3
    Views:
    315
    Marcin
    Oct 26, 2006
  5. cooking@bangbangboomboom.com

    Helo, Hello :o)

    cooking@bangbangboomboom.com, Dec 15, 2007, in forum: Digital Photography
    Replies:
    0
    Views:
    357
    cooking@bangbangboomboom.com
    Dec 15, 2007
Loading...

Share This Page