How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLProg Your Own Question

ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8639
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
Type Your Homework Question Here...
ATLProg is online now
A new question is answered every 9 seconds

RegistersA small computer has two registers, R1 and R2,

Resolved Question:

Registers

A small computer has two registers, R1 and R2, and the following instructions: LOAD, SUBTRACT, MULTIPLY, BNZ, PRINT and STOP. The format of the instructions is the following:


Operation Code First Operand Second Operand



The LOAD instruction loads data from memory to a register. The LOAD, SUBTRACT, and MULTIPLY instructions expect a register in the first operand. They expect a data location or a direct value in the second operand. The data location in the second operand can be a Register or a Memory Address. A direct value (denoted by =) is the actual data value (as opposed to the data location). The LOAD, SUBTRACT, and MULTIPLY use the second operand to operate on the data in the first operand. They leave the result in the first operand.


For example, if the value stored in register R1 is 10 and the instruction MULTIPLY R1, = 4 were executed, the new value stored in register R1 will be 40.

As another example, assume the value stored in register R1 is 10 and the value stored in data location 500 is 35. If instruction MULTIPLY R1, 500 were executed, the new value stored in register R1 will be 350.

BNZ tests the first operand and branches to the address specified in the second operand.
PRINT has one operand. It prints the content of the first operand on the screen.
STOP does not have any operand. It halts the program.


Address

Instruction


0 LOAD R1, = 5


1 LOAD R2, = 1


2 MULTIPLY R2, R1


3 SUBTRACT R1, = 1


4 BNZ R1, 2


5 PRINT R2


6 STOP


What does the program compute and what is the printed result?



Strings

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g is a function that returns the concatenation of the two strings given as its input. If x is the string abcd, what is returned by g(f(x),x)? Explain your answer.
Submitted: 1 year ago.
Category: Homework
Expert:  ATLProg replied 1 year ago.
Hello Welcome. Thank you for your question, I’m ATLProg and I’ll try to help you.
Customer: replied 1 year ago.


Hi sorry but I see no answer

Expert:  ATLProg replied 1 year ago.
Here it is

http://wikisend.com/download/419986/Q.docx

Please start question with "for ATLProg" to request me next time

I hope i was able to assist you. If you are happy with my service please rate my service . If your are not 100% satisfied, please reply to me so that i can help you better. Please start your question with "For ATLProg only" to request me again

Expert:  ATLProg replied 1 year ago.
Did you have any other question?
Customer: replied 1 year ago.


Hi I do have a request , can you do a little step by step on this question and answer please


 






































Address



Instruction



0



LOAD R1, = 5



1



LOAD R2, = 1



2



MULTIPLY R2, R1



3



SUBTRACT R1, = 1



4



BNZ R1, 2



5



PRINT R2



6



STOP



Program calculates the factorial of initial
value stored in R1. So in this case it calculates the factorial of 5 which is
120. At the end it stores 120 in R2 and prints that.



Expert:  ATLProg replied 1 year ago.
Please download detailed answer from

http://wikisend.com/download/135998/Q.docx
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8639
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
ATLProg and 8 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

Prolog


Prolog is a programming language that belongs to the logic programming paradigm as explained in Section 6.7 of the Brookshear textbook.

Compute the output of the following program:

Parent(dad_tough_guy, babe_ruth).
Parent(dad_tough guy, little_kid).
Parent(john_oldman, dad_tough_guy).
Parent(mary_oldwoman, dad_tough_guy).
Grandparent(X, Y) :- parent(X, Z), parent(Z, Y).

What is the following following Prolog query trying to ask? What are the values of X?
?- Grandparent(X, babe_ruth).
Expert:  ATLProg replied 1 year ago.
I would need more details for this question Please provide what is on section 6.7

Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here.

Customer: replied 1 year ago.

http://wikisend.com/download/543796/Prolog.docx


is the link

Expert:  ATLProg replied 1 year ago.
Can you please create a separate question for this Chris as its a new question
Please visti http://www.justanswer.com/computer/expert-atlprog/ to post a new question Please start your question with "For ATLProg only" to request me again
Customer: replied 1 year ago.

okay will do of course

Expert:  ATLProg replied 1 year ago.
I have the solution ready let me know when you create the question
Customer: replied 11 months ago.

Describe a data structure suitable for representing a board configuration during a chess game.


A chess board has 8 x 8 squares alternating between black and white. These are the standard pieces in a game of chess:


2 Kings (Black & White)
2 Queens (Black & White)
4 Rooks (2 Blacks & 2 Whites)
4 Bishops (2 Blacks & 2 Whites)
4 Knights (2 Blacks & 2 Whites)
16 Pawns (8 Blacks & 8 Whites)

Expert:  ATLProg replied 11 months ago.
Can you please create a new question requesting me
Customer: replied 11 months ago.
I did try to generate a new question staring with foratlprog only but the system still offers me someone else to answer
Is there a more direct route?
Expert:  ATLProg replied 11 months ago.
Please use this

http://www.justanswer.com/homework/expert-atlprog/
Customer: replied 11 months ago.

I have tried that link but no matter what I do I am directed to another person but not you

Expert:  ATLProg replied 11 months ago.
give me 2 mins i will give answer here and you can rate it here
Customer: replied 11 months ago.

perfect but how do I contact you in the future?

Expert:  ATLProg replied 11 months ago.
Please download solution from

http://wikisend.com/download/124238/Solution.docx

I hope i was able to assist you. If you are happy with my service please rate my service . If your are not 100% satisfied, please reply to me so that i can help you better. Please start your question with "For ATLProg only" to request me again

For future just create question in Homework Category and start question wtih "For ATLProg" even thought it suggest other expert dont worry about it. If you get someone else after posting your question you may mention you want to work with ATLProg
Expert:  ATLProg replied 11 months ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8639
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
ATLProg and 8 other Homework Specialists are ready to help you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience