Solved

Using LMC code for an assignment

Posted on 2009-05-13
2
299 Views
Last Modified: 2012-05-06
I have to test a sequence. I can enter the first few numbers but stuck on if test number is greater than the second? I can enter and load numbers, but to test if one is greater than the other, do I use BRZ? if greater than zero then what? I have the site atkinson.yorku in front of me if that is all I need, I just would really like some clarification as to how to use it.
0
Comment
Question by:knewtoit
2 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 24386135
Yes, you'll probably use a BRZ, you don't know the context yet.

If you subtract A from B and the result is zero, what does that tell you about the relationship between A an B?

Now, if the result is not zero and positive, what does that tell you?

So, you might do something like:

1) if a-b is zero go do they're the same
2) if it was positive, A must have been larger, so go deal with that
3) Otherwise B was larger, so deal with that.


So, it looks like you'll have both BRZ and BRP.
0
 

Author Closing Comment

by:knewtoit
ID: 31581292
Thanks very much I like the way you have broken down the question.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now