Deliverables right or wrong

Could someone have a look at these and tell me which are valid and which are invalid.
A formal definition (or input grammar) of an expression will also help you to understand what makes up valid data that your program should correctly evaluate.
Expression: Number Padding { Operator Padding Number Padding} "="
Number: ["-"] { Digit } [ "." ] { Digit }
Operator: "+" | "-" | "*" | "/"
Digit: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
Padding: {""} | { " " } | { "\t" }
Deliverables
1. Which of these are valid according to the a) the input grammar above and b) the details given in the above aims. If not, then why? There are no syntax mistakes here, as you see them is as they have been written. Its an online test.
A) "2.23 + 22.1 /3 ="
B) "23.22 -112 + 12"
C) "-12 / 2 ="
D) "1.2.1 /095 ="
E) "85.045 / 45 * 12.3 ="
f) "56. 5 + 2.11 + 13 /3 ="
g) "54 - - 2 ="
H) "0003.333 / 0.0 ="
I) "845.2 12.3 -="
J) " 12.45 - 12.12 ="

If I were to guess, which I'm about to, I'd say this:
A. Is good because it follows "Number Padding {Operator Padding Number Padding} = "
format.
B. Bad because it is Number Padding Number Operator Number format
C: Good
D. Good
E. Bad because it is Number Padding Operator Padding Number Padding Operator....
F. Bad because it is Number Padding Number....
G. Bad: Number Padding Operator Padding Operator.....
H. Good
I. Bad Number Padding Number
J. Bad Padding Number
I hope it's correct. I'm not a hundred percent sure becuase it's been so long since I used these types of expressions.
scottj

Similar Messages

  • Deliverables right or wrong help please

    Could someone have a look at these and tell me which are valid and which are invalid.
    A formal definition (or input grammar) of an expression will also help you to understand what makes up valid data that your program should correctly evaluate.
    Expression: Number Padding { Operator Padding Number Padding} "="
    Number: ["-"] { Digit } [ "." ] { Digit }
    Operator: "+" | "-" | "*" | "/"
    Digit: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
    Padding: {""} | { " " } | { "\t" }
    Deliverables
    1. Which of these are valid according to the a) the input grammar above and b) the details given in the above aims. If not, then why? There are no syntax mistakes here, as you see them is as they have been written. Its an online test.
    A) "2.23 + 22.1 /3 ="
    B) "23.22 -112 + 12"
    C) "-12 / 2 ="
    D) "1.2.1 /095 ="
    E) "85.045 / 45 * 12.3 ="
    f) "56. 5 + 2.11 + 13 /3 ="
    g) "54 - - 2 ="
    H) "0003.333 / 0.0 ="
    I) "845.2 12.3 -="
    J) " 12.45 - 12.12 ="

    Sorry, I should have mentioned, this would be based on a calculator programme design.

  • Formula column right or wrong

    hi frds
    i just want to know whether this formula colum in report builder is right or wrong
    function CF_1Formula return Number is
    X NUMBER;
    begin
    SELECT sum(ABS(nvl(TRAN.QUANTITY,0))) INTO X
    FROM RCV_TRANSACTIONS TRAN,RCV_SHIPMENT_HEADERS RCV,PO_LINES_ALL PL
    WHERE TRAN.TRANSACTION_TYPE ='RECEIVE' AND TRAN.PO_HEADER_ID = :PO_HEADER_ID
    AND TRAN.SHIPMENT_HEADER_ID = :SHIPMENT_HEADER_ID
    AND TRAN.SHIPMENT_HEADER_ID = RCV.SHIPMENT_HEADER_ID
    AND RCV.RECEIPT_NUM=:RECEIPT_NUM
    AND TRAN.ORGANIZATION_ID=:organization_id
    AND TRAN.PO_LINE_ID = PL.PO_LINE_ID
    and pl.item_id=:inventory_item_id;
    RETURN(X);
    end;

    right

  • Firefox, when clicked, said IMPORTANT update,pressed enter! But then download went on forever? I didn't trust it, so cancelled download- Right or wrong?? Thanks

    yes, when I pressed enter, the horizontal "tube" never quite filled up, if you know what I mean! I didn't recognise this format & it was taken so long (minutes) I thought it was fraudulent . . was I right or wrong???

    Do you memeber the complete wording of the error message?
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • All Ipad 4 wifi   cellular are unlocked, right or wrong?

    All Ipad 4 wifi   cellular are unlocked, right or wrong?

    Right. Look at the specifications. http://www.apple.com/ipad/specs/

  • Seems simple enough right? Wrong!

    Okay hopefully someone on here can help me. I am using Illustrator CS5 and I am working on a document. I'm trying to put a logo on top of another item created by the pen tool. seems simple enough right? Wrong, the software will not let me use object>arrange>bring to front or Cmd ] and cmd [ is there something that i'm doing wrong? I've redrawn the shape and it still won't let me, I've brought in the logo again, it won't let me, i've done a host of other things and it still won't let me put that stupid logo on top of the cloud (what i drew with the pen tool)
    Thanks!

    Not sure what you mean. Why is there more than one layer?
    It could be that you intentionally created additional layers. It could be that you unintentionally created additional layers. It could be that you hit Cmd L some day. It could be that you pasted objects while Paste Remembers Layers was turned on. Or something else.

  • HT201269 Is there a right, and wrong way to plug the lightning connector into the phone?

    The lightning connector dosen't want to plug into the slot and I don't want to force it, ... is there a right and wrong way to do this bisic and simple step?  Thanks

    No, it is a reversible plug. Either way is fine.
    Just make sure you plug it in straight until it "clicks" into place. It may take a bit of force if new, but check there's nothing in the port first.

  • Creating a test in PDF: Is it possible to create Right and Wrong answer fields in PDF?

    Very new to this.  I may be way off, but Im trying to create a test for some students to do in class.  Is it possible to create fields that turn green when right and red when wrong?  Also can you have a field that accumulates the right answers to give a score?

    Sure you can, with a bit of JavaScript. What sort of fields will you be using and what part of the field do you want to be green or red?

  • Right thumbnail, wrong images

    I'm using iMovie 11 (9.0.2) on a 2010 MBP with 500GB of hard drive and 8GB RAM.
    I sat down this weekend to put together a video for a friend - ten minutes of scanned stills and ripped-from-DVD videos with a separate narration track.
    I did it in 10 separate sequences - each sequence its own project - and they all worked fine. Then I created a new project into which I was going to put together all ten sequences.
    I got five of them in just fine, but when I put in the sixth one, I started getting anomalies. A thumbnail for a picture of one person now contained pieces of stills of other people I'd already put in. (In other words, a few stills from the first minute of the project now showed up in minute six under the thumbnail of the still that was supposed to go there).
    It was weird. I tried it agin. Dragged the correct still into place ... saw the right thumbnail ... but when I played it, I saw images that I'd already cut in earlier. I had no problem with any of the video segments I'd inserted ... only a few jpegs.
    I tried deleting and re-inserting ... same problem. I tried creating a new project and just starting with minute six, and got the same problem. I closed and re-opened iMovie - same problem. I re-botted. Same problem. It seems like I hit iMovie's limit for ... I don't know ... something.
    Since I needed to get this done, I just created QuickTime movies of each sequence, and married them all together in Final Cut Express, which worked fine. But I'd love to know if there's some way I could have finished this project in iMovie.
    Has anyone seen this anomaly - the thumbnail is right but when you play the sequence the images are totally wrong?
    Thanks in advance for any advice you can offer ...

    I had the same issue today. The thumbnail footage appears correct, but I can't play it to preview it. If I select a portion and put it in a project, I can play, but I can't play it in the preview/event library section. Very strange.
    Anyone have a fix idea?

  • After upgrading to Mavericks from Mountain Lion, the computer is not opening most of the programs, with the exception of iPhoto, iTunes and Skype. How to right the wrongs?

    I was running Mountain Lion and absent-mindedly upgraded to Maverick.
    Now it would be nice to have a computer again...
    When clicking on an application in the dock, the icon will reluctantly jump once or twice, and then just calls it a day.
    Could somebody please help?

    You ran a defective third-party "utility" such as "CleanMyMac" that purports to "clean up" "junk" files. What it really does is to corrupt the operating system.
    The first thing you need to do is remove that software, if you know what it is, according to the developer's instructions. Never install it, or anything like it, again. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS. You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.

  • Can't figure out how to edit a Draft e-mail message--simple, right? Wrong.

    OK, sorry if this is too basic and belongs in the Getting Started folder, but I couldn't find the problem here or in that location.
    I thought I could figure out how to edit a message in the Drafts folder. I tried; it didn't work. I looked online, found a tutorial, which showed that I was indeed trying to do the right thing the right way. So why doesn't it work????
    Here's what happens.
    I start an e-mail message, click Cancel, then save as a Draft. That works fine. But then...
    From the Home screen, I tap Mail.
    On the Mailboxes screen, I tap Drafts (there's a number on the right -- 2 -- which disagrees with the number of messages actually seen -- 1 -- at the next step; I don't know if that's an important detail or not).
    I see the draft message I want to edit. I tap it.
    I tap Edit. According to the tutorial, the message is supposed to open up for me to edit further. But it doesn't. Instead...
    The two lines representing the message (Recipient and first few words) move a bit to the right, and the Edit button changes to Cancel.
    A dull red Delete button and a blue-gray Move button show up at the bottom. But the first line of the draft message, which has (accurately) shown up under the boldface "(No Recipient)" line, stays where it is -- showing as part of an entry in the list but not as something I can edit. I don't see the complete message, and I can't edit anything, even though I think I have just entered an Edit mode.
    I click those two lines, and a red checkmark appears on the left, and the dull buttons at the bottom become brighter red and brighter blue-gray.
    Tapping, double-tapping, tap-and-holding... all just toggle that checkmark on and off.
    THIS MUST BE REALLY SIMPLE... HOW DO I EDIT THE TEXT OF THE DRAFT MESSAGE????

    Zero replies??? Wow, I guess this is a really uncommon problem.
    Well, the Genius Bar fixed the problem. They confirmed that it WAS real, and they couldn't figure out how it had gotten that way. There must have been some internal list in an inconsistent state... or something.
    The fix was to deactivate my MobileMe account on my iPhone -- just wipe it out. Then they re-activated it. Everything re-synched and the problem was gone.

  • Is this right or wrong?

    Here is an excerpt from API doc for the interface, java.util.Comparator,
    Caution should be exercised when using a comparator capable of imposing an ordering inconsistent with equals to order a sorted set (or sorted map). Suppose a sorted set (or sorted map) with an explicit Comparator c is used with elements (or keys) drawn from a set S. If the ordering imposed by c on S is inconsistent with equals, the sorted set (or sorted map) will behave "strangely." In particular the sorted set (or sorted map) will violate the general contract for set (or map), which is defined in terms of equals.
    For example, if one adds two keys a and b such that (a.equals((Object)b) && c.compare((Object)a, (Object)b) != 0) to a sorted set with comparator c, the second add operation will return false (and the size of the sorted set will not increase) because a and b are equivalent from the sorted set's perspective.
    Is it right? Will the second add operation fail?
    In my opinion, the sorted set performs ordering in terms of compare/compareTo method, while a set decides whether to accept or refuse a new element by equals method. If this is the case, then under the situation described in the API doc, a and b are NOT equivalent from the sorted set's prespective, thus a and b can both be added successfully. And only if this happened, we could say[i] total ordering inconsistent with equals could work well for sorted set, but breaks the general contract for the set.
    I'm totally confused.

    I think the API comment you mention got it backwards. Did you whip up an example
    to test this yourself?
    import java.util.*;
    public class Example {
        public int compare; //used to define comparator
        public int equal;   //used to define equals
        public Example(int compare, int equal) {
            this.compare = compare;
            this.equal = equal;
        public boolean equals(Object o) {
            if (!(o instanceof Example))
                return false;
            return equal == ((Example)o).equal;
        public String toString() {
            return "(compare=" + compare + ", equal=" + equal + ")";
        public static class C implements Comparator {
            public int compare(Object o1, Object o2) {
                return ((Example)o1).compare - ((Example)o2).compare;
        public static void main(String[] args) throws Exception {
            C c = new C();
            Set s = new TreeSet(c);
            Example a = new Example(0, 0);
            Example b = new Example(1, 0);
            System.out.println("a.equals(b) = " + a.equals(b));
            System.out.println("c.compare(a,b) = " + c.compare(a,b));
            s.add(a);
            System.out.println("after adding a, s =" + s);
            s.add(b);
            System.out.println("after adding b, s =" + s);
    }

  • Apple ID both right and wrong in iPad

    Hello:
    I posted this in the entirely wrong place in this forum. I would delete the wrong post if I knew how to. Here it is, hopefully in the correct place.
    I am helping my wife with her iPad/iPhone. Same issue with both.
    In Settings > iTunes & App Store > Apple ID: new email address, indicating new Apple ID (I know the password)
    In App Store > Update All: fails. Up comes box "Apple ID password" and in it is the email address for my wife's old Apple ID. We do not have the old password, and while I just tried to reset it, this failed too (I recreated the email address and tried to get a messsage from Apple with info what to do to reset the password, but no message arrived two hours later).
    So, the question is:
    How do I change the Appe ID in my wife's iPad and iPhone for App Store? (Remember, it is correct in Settings > iTunes & App Store.)
    Thank you!
    Hans L

    Hello Hans,
    Welcome to the Apple Support Communities. If you have put in the new Apple ID and when you update apps the old Apple ID appears. That means you will need to remove those apps and download them under the new Apple ID. You would need to know the old password to continue to use that Apple ID
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Regards,
    -Norm G.

  • Search yields right AND wrong results

    Hi all,
    I've looked around for an answer to this, but so far nothing. Can you help?
    When I type in a search term in iTunes (Library: music; Search: all), I get all the correct results, but I also get results that I shouldn't as well. I thought it had to do with the words found in the album's Description field (in this case, it's a podcast), but I deleted the Description (which did contain the search term/s), and yet they still show up in the search results -- as if the podcast is somehow imprinted with the words I deleted, though I cannot find them elsewhere. (These terms do not show up in the podcast's "Show Description" either.)
    Does this make sense?
    Any ideas?
    Thanks,
    Rich
    [email protected]

    Hi - Thanks! I checked the Show Description (using Control, aka right-click) but did not see any terms that would cause the podcast to show up in search results. I've already deleted any text in the Description field (Get Info). Still perplexed.

  • Right Category, wrong section !

    I have just published my 'First' ever Podcast ( just a tester ) and noticed that it is the Correct Category but in the wrong Section. How do I change this ?
    Any ideas, many thanks
    Steve

    when you send it to itunes, it should ask you for both. it means you entered it incorrectly. try re-sending!
    max

Maybe you are looking for

  • Roles in Solar02

    Hi! In Solar02 transaction, under column ' type' I see a object name ' rolle'(roles). Has anyone used this feature? Does it help in building security roles and profiles. Thanks. Mike

  • I have adobe Photoshop element 6

    I can't open my adobe photoshop element, the error message says: This application has requested the Runtime to terminate it in an unusual way. Please contact the application support team for more information. I need help for this question. Dan

  • How to set up Max Grab Qty in an order

    Hi Experts, Can you please help/hint me on how to set up Maximum grab qty (item level) for an order. For example - If i set up material ABC with 50 Max grab Qty , then you should not be able to raise an order with qty greater then 50. VA01 should blo

  • SICF - HTTP 500 Error when testing SOAP RFC Service for XML load into BW

    I am trying to load a XML file into BW w/o XI.  So there is no source system as such.  I followed the 'How to guide on loading XML to BW.  I am on BW 3.5.  I went to transaction SICF>default_host/sap/bc/soap/rfc I did a RMC and selected Test Service.

  • Creating new tables

    Hi Every one, I am new to SAP.Please some one can explain,if new table is to be  created,( as it is not in SAP tables), the what is the process of creating new table and how it is used for specific customer. I hope some one will help me. Thanks in ad