Real quick question on a game problem

alright the loop works but how can i make it so that the number of sticks are decreased every time i choose a number of sticks to be taken and then the program will continue until all the sticks are finished with. I hope u got what I was sayin
For Example:
**you start with 31 sticks and you can only choose up to 4 sticks per turn**
Server: Your move first. How many sticks do u take?
Input: 1
Server: That leaves 30 sticks. I pick up 4. 26 sticks remain. How many sticks do u take?
Input: 1
Server: That leaves 25 sticks. I pick up 4. 21 sticks remain. How many sticks do u take?
Input: 1
Server: That leaves 20 sticks. I pick up 2. 18 sticks remain. How many sticks do u take?
Input: 3:
Server: That leaves 15 sticks. I pick up 4. 11 sticks remain. How many sticks do u take?
Input: 1
Server: That leaves 10 sticks. I pick up 3. 7 sticks remain. How many sticks do u take?
Input: 1
Server: That leaves 5 sticks. I pick up . 2 sticks remain. How many sticks do u take?
Input: 2
Server: You picked up the last stick. You win!
Client: connection closed
Thanks
import java.net.*;
import java.util.Random;
import java.io.*;
import java.awt.*;
public class KnockKnockProtocol
    public String processInput(String theInput)
            String theOutput = null;
            String strHowManySticks     = "";
            String strSticksPerTurn = "";
            String strFirstPlayer = "";
            String confirmOkay = "";
            String meString = "";
            String compString = "";
            System.out.println("Let's Play NIM. Whoever Picks the last stick wins. Let's \n"
                             + "decide the rules. How many sticks do you want ot play with?");
             try
               BufferedReader stdin = new BufferedReader( new InputStreamReader( System.in ) );
               strHowManySticks = stdin.readLine();
               System.out.println("How many sick can we pick per turn");
               strSticksPerTurn = stdin.readLine();
                  //while((strFirstPlayer.equals("YOU")) || (strFirstPlayer.equals("ME")))
               System.out.println("Who should go first. (YOU or ME)");
               strFirstPlayer = stdin.readLine();
               System.out.println("The rules are " + strHowManySticks + " sticks, " + strSticksPerTurn +
                                  " max sticks per move. You first. Okay?");
               confirmOkay = stdin.readLine();
               if (confirmOkay.equals("Okay"))
                       if(strFirstPlayer.equals("ME"))
                               int mhs = Integer.parseInt(strHowManySticks);
                            while(mhs > 0) {
                                         System.out.println("Your move first. How many stick do you take");
                                         meString = stdin.readLine();
                                         int spt = Integer.parseInt(strSticksPerTurn);
                                         Random rnd = new Random();
                                         int a = rnd.nextInt(spt);
                                         mhs = Integer.parseInt(strHowManySticks);
                                         int myStr = Integer.parseInt(meString);
                                         mhs -= myStr; // mhs = mhs - myStr
                                         mhs -= a;
                                         System.out.println( "I pick up " +a+ ". " +mhs+ " sticks remain.");
             catch ( IOException iox )
               System.out.println("Problem reading "  );
        return theOutput;

Here's a bit of a re-write of your code. Compare the two, you might spot a difference that'll help get you what you want.
import java.util.Random;
import java.io.*;
class KnockKnockProtocol
  Random rnd = new Random();
  int iHowManySticks = 0,sticksRemaining = 0,iSticksPerTurn = 0,iFirstPlayer = 0;
  BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
  public KnockKnockProtocol()
    startup();
    startTheGame();    
  public void startup()
    try
      System.out.print("\nLet's Play NIM.\nWhoever Picks the last stick wins.\n"+
       "Let's decide the rules.\n\nHow many sticks do you want ot play with?: ");
      iHowManySticks = Integer.parseInt(stdin.readLine());
      System.out.print("\nWho should go first. 0 - Player or 1 - Computer): ");
      iFirstPlayer = Integer.parseInt(stdin.readLine());
      System.out.print("\nHow many sticks can we pick per turn: ");
      iSticksPerTurn = Integer.parseInt(stdin.readLine());
      if(!confirmOK()) startup();
    catch(Exception e){errorHandler();}
  public boolean confirmOK()
    try
      String first = iFirstPlayer == 0? "Player":"Computer";
      System.out.print("\nThe rules are:\n"+iHowManySticks+" sticks\n"+
       iSticksPerTurn+" max sticks per move\n"+first+" first. Okay?\n"+
       "0 - yes, 1 - no (re-enter data), 2 - quit: ");
      int answer = Integer.parseInt(stdin.readLine());
      if(answer == 0) return true;
      else if(answer > 1) goodBye();
    catch(Exception e){errorHandler();}
    return false; 
  public void startTheGame()
    sticksRemaining = iHowManySticks;     
    while(sticksRemaining > 0)
      if(iFirstPlayer%2 == 0) playerMove();
      else computerMove();
      iFirstPlayer++;
  public void playerMove()
    boolean numberOK = false;
    try
      while(!numberOK)
        System.out.print("\nYour move.\nHow many stick do you take: ");
        int playerTakes =  Integer.parseInt(stdin.readLine());
        if(playerTakes > 0 && playerTakes <= iSticksPerTurn)
          numberOK = true;
          sticksRemaining -= playerTakes;
          if(sticksRemaining == 0) displayWinner("Player");
          else System.out.println("That leaves "+sticksRemaining+" sticks.");
        else System.out.println("invalid number, try again");
    catch(Exception e){errorHandler();}
  public void computerMove()
    int computerTakes = (rnd.nextInt(iHowManySticks) % iSticksPerTurn)+1;
    if(computerTakes > sticksRemaining) computerTakes = sticksRemaining;
    sticksRemaining -= computerTakes;
    System.out.println("\nComputer takes "+computerTakes+" sticks.");
    if(sticksRemaining == 0) displayWinner("Computer");
    else System.out.println("\nThat leaves "+sticksRemaining+" sticks.");                            
  public void displayWinner(String winner)
    System.out.println(winner+" wins!!!\n");
    goodBye();
  public void errorHandler()
    System.out.println("I/O error - terminating.");
    goodBye();
  public void goodBye()
    System.out.println("\nThanks for playing NIM.\nGoodbye.");
    System.exit(0);
  public static void main(String args[]) {new KnockKnockProtocol();}       
}

Similar Messages

  • Just A REal Quick Question

    Hey Folks,
    I just have a quick question... LoL, like the subject header thing says...
    Does anyone know where i can find a list of games that will run on just a macbook?
    so that i don't have to go through every game and look at the specs.... i can just look at the list and jump to that game and see if i want to buy it...

    try google searching ...."games that work on GMA 950 chipset" which should produce a wiki page
    the GMA 950 is the graphics card in Macbook and is poor for gaming as I found out but GOOD LUCK

  • Quick question about an exception problem

    Hi all,
    I'm doing a homework problem with exceptions and there is an outline I have to fill in with some exception handling. There are 2 parts of the problem I'm not sure about that deal with checked and unchecked exceptions and passing exceptions to a calling method.
    Here's the problem: in the following method, the call to getStudentNumber( ) may throw a BadNumberException or a FileIOException. Modify the code (aka add try/catch blocks etc.) to do the following.
    1. Pass the BadNumberException on to the calling method. It is not a checked exception.
    2. Pass FileIOException on to the calling method. It is a checked exception.
    Here is the code outline:
    public void reportStudents() {
    int number;
    while(true) {
    number = getStudentNumber();
    setStudentNumber(number);
    } }I know I need to declare the 2nd exception but I'm not sure the syntax of doing so. Any help would be appreciated. Thanks.

    See this tutorial for the information:
    http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html

  • Real quick question... quick answer

    Got title view of pages in the sitemap.
    But there are a host of external links on every page. I
    really don't want to see them. I just want the actual local pages.
    Now, before you suggest "View/Hide Link" --- Remember, there
    are dozens of these external links on every page. It will take a
    prohibitively long time to select and hide each link.
    So, very simply, can I view JUST the local pages by title...
    easily?

    i can't see any information on the MBOX on MSI's global website, but i'd guess if its a small barebones PC, its likely to only take a micro-ATX mainboard, unless its a proprietory design, like with the Mega PC

  • Quick question - AWM - simple cube problem

    im using AWM 10.2.0.3
    my fact table:
    1 program1 100eur
    2 program1 200eur
    3 program2 130eur
    i have only one dimension (program).
    Aggregation operator is Sum.
    when i generate the cube the sum in AWM Data Viewer is only 230eur (the second program - 200eur is not included)? why? is that a feature or bug?
    im using [http://wiki.oracle.com/page/Getting+Started+With+Oracle+OLAP+Option|http://wiki.oracle.com/page/Getting+Started+With+Oracle+OLAP+Option] tutorial, but didnt found anything there...
    thanks for any help.
    regards. Kristjan

    Kristjan,
    The fact you mentioned has program1 repeating. In AWM you should not have repeated dimension key combination otherwise the last loaded record will only loaded. So my suggestion is that you should do a sum(measure values) and group by (all dimensions - in current case it is just 1) before loading into cube.
    So you can create a view like below
    create fact_vw as select program,sum(eur) from <fact table> group by program
    Now use this fact to load the cube.
    Why do you see 230?
    =============
    200 eur is loaded against program1 and when 100eur comes again for program1, earlier loaded value is replaced by 100 and then for program 130. Total is 230 eur.
    Thanks,
    Brijesh

  • Quick question when purchasing prints through iPhoto

    Just a real quick question.
    When I select photos I want to purchase from my iphoto collection, i know it hooks into Kodak. My question is, is an account created for me on Kodak's site that keeps my collection and allows me to log in from anywhere to view photos, buy photos? Does it allow me to share albums that friends and family can view and buy photos from as well?
    I've never used the service before, but I would like to, assuming it allows me to do the above stuff I mentioned.
    Thanks,
    Jason

    Create an album and drag the photos you want to print to it,  crop  them to the print dimensions, select all of the photos in the album and order your prints
    LN

  • Quick question on potential Ti-4400 Problem

    Hi all,
    I think I am having some problems with my mobo and just wanted to ask a quick question...
    On my old box, I had major crashing problems when I put the Ti-4400 in while in the middle of 3D games.  I'm almost certain this was due to overheating.
    New rig...many fans!  Everything seems pretty cool.  However, among other problems I am having since putting this new setup together (onboard audio crashes, reboots while using IE, etc.), I am having crashes in the opening intro video to various games.  My recollection is that this is just crappy rez vids that don't tax the video card to nearly what the actual gaming should.  Does this sound right to every/anyone?  I don't seem to have any great problem during heavy 3D use (or 3dmark, etc.).
    Thanks.

    Currently I have actionPerformed method in the editor and an actionPerformed method attached to each button.Well, you should create an Action. The Action can be shared by both a menuItem or a button. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html]How to Use Actions for more information.
    should the listener be an innner class of the Editor class or an external class.Whether the Action is an inner class or external class doesn't really matter as long as it is a separate class.
    If the Action is unique and will only be used by the parent class, then making it an inner class can simplify coding since it has access to the variables of the class.
    If the Action is more generic and might be able to be used by multiple applications then it should be a separate class so you have code reusability.

  • Fixed and 2 quick questions (bios thread)

    Hi Everyone, i need your help again...
    [....]. since i installed Win2k3 on my system i was getting stability problems, especially lockups to black screen in games. On Win2k3 i was using the exact same drivers as I am going to list soon, and so I thought I'd install Windows XP again on a spare hard drive to see if this helped. I wish i'd never messed with my system my previous XP install was almost 100% stable, but that's another  story.
    Today I perfomed these steps in this order:
    1)Downloaded SP1a
    2)formatted new hard drive
    3)Booted from CD, did a Windows XP Pro install
    4)Started XP Pro, installed SP1a
    5)Installed Nforce system drivers and Display Drivers 29.42 (these were very good to me before...) and restarted
    6)Installed Speedtouch USB ADSL Drivers 2.0.1.2 and went online
    6.5)Enabled Hardware Acceleration on Displayt Properties
    6.7) Installed direct x 9.0a web setup.
    7)Did full windows update: all the critical stuff, most of the recommended (except MEssanger, Media Player and a couple others) and the CPU driver (left my Gfx and Sound on the above)
    8) After a restart started a game
    It lasted all of 10 seconds once I started playing.
    Ok, maybe 5 seconds. Smae as Win2k3!!! I was running bios default performance options, with APIC off... so I ran Prime 95 for a while, got no errors .... about to try a memtest86 but I'm pretty cetrain the memory is good never had trouble with it before at all and I've tested it before too.
    Can someone help me out? Here's my hardware config
    [size=11]
    AMD XP 1900+ (no overclock any more)
    MSI K7N420D MB
    2*512MB DDR266 Samsung 'Transcend' Memory (unbranded really) (16 chip DIMMs)
    Geforce 2 MX400 32MB SDRAM (unbranded - runs a little faster then onboard graphics)
    Adaptec 29160LP Scsi Card
    IBM 16000rpm 32GB SCSI Disk (UW-2)
    2*WD1000BB 100GB Western Digital IDE Drives (the normal ones with 2mb cache) in Software Raid - 0 on Promise card
    18GB Maxtor ATA66 IDE hd on Nforce, with CDR.
    a Promise Ultra TX100 Dual IDE Controller card (for CD Rom + expansion)
    Enermax 431w PSU / 7200rpm fan on heavy HS.
    Windows XP SP1 / DX 9.0a (going to reformat to Win2003)
    [/SIZE]
    I could really do with anyone's working driver config for a windows XP sp1a system, and how to build it from the bottom up. If a given driver config that works 100% for others fails for me I can start hardware troubleshooting and cursing loudly, otherwise with any luck it'll fix my problem.... please help me out i know there are people out there still running NForce 1 boards!
    Quick question that could help: what sound driver revision from windows update should i be using? I can get the archived ones....
    Thanks,
    Naveen.
    PS If i manage to fix it i'll update here, but i need a hand plz

    .... also, I have the same errors running the same game from Win2k3 on a SCSI drive through the PCI bus (adaptec 29160) on the 2.7 bios. It looks like there is still an issue with fast PCI bus read/writes, sound usage and AGP card usage causing crashes. Discounting the OS change and APIC, I have these scenarios:
    1) Game running off IDE drive on Nforce IDE ports: fine
    2) Running of IDE drives on promise controller card: fails, locks.
    3) Running off scsi drive on Adaptec 29160 card: fails, game locks.
    So we may still have an issue with PCI read/writes and stability on bios 2.7 and Nforce system drivers 2.03 ... which is big news really.
    I hope one of the moderators can put MSI in the picture and get them or NVidia to look into this. I can try eliminating APIC and the OS/Drivers from the issue, and install the game on all 3 drive configurations to confirm the above if necessary, but it's what it looks like from here. Using Performance bios defaults with no overclock, underclocking didnt help.
    Perhaps bios 2.4 will fix this in which case the bios still needs work, 2 years on.
    Naveen

  • Some quick questions before I purchase LE8..

    Hi all,
    I'm a longtime mac user and I just got into music production. I plan on mainly making Hip Hop beats and also record me playing bass on sampled tracks. I have already purchased an audio interface( PreSonus Firebox 6x10) and some monitors (KRK RP5's). I'm going to be purchasing LE8 and a MIDI keyboard soon, as well as a turntable for sampling vinyl sometime this week.
    I got some quick questions though. If I'm loading samples off vinyl into the ESX24 sampler in LE8, what program can I use within LE8 to cut the desired parts of the sample? Then assign them to my MIDI keyboard or Akai MPD24.
    I plan on hooking everything up to my 2.16ghz w/2MB Macbook and was wondering if it could withstand Logic. Also, will I need to update any drivers for the firebox? I remember reading problems about it working with Logic.
    Any help would greatly be appreciated. If any Hip Hop heads here have any tips/ suggestions, lemme know!
    Thanks,
    JC
    Message was edited by: sonofabass

    I'm not a big expert on audio recording, but other than the video card (which would not be a big factor for audio) you can't really upgrade it to much further than what you specified. You could increase the internal storage, but I've always been inclined to keep most of my personal files (things I am not actively working on now) on an external drive, and keep the OS, applications, and my current ongoing work on the internal drive, along with plenty of free space. I think that improves performance. If you did get the larger internal storage option, you might consider partitioning it into two volumes. You could keep your OS, apps, ongoing work, and that free space on one volume, and use the other volume for the long-term storage of your user files. Or maybe for your audio work, it is better to have a separate volume that is a dedicated +scratch space+, so if you had the larger internal drive, you can use that space more flexibly.
    One other consideration is the CPU speed. There is really very little difference between 2.93 GHz and 3.06 GHz. It's about 4%, but in the real world, the performance difference is probably even less. So you could trade the $150 for the slightly faster speed and get the extra internal storage for $100, saving you $50.
    Also, the online store has a page for clearance and refurbs (Special Deals). For example, this one is currently listed
    http://store.apple.com/us/product/FB419LL/A?mco=MjE0NDk5Mw
    It is the current gen iMac model. Note: Many of the items on the Special Deals section are previous generation Mac models (so keep that in mind if you look at other listings). My current iMac is a refurb. In my experience, the one Mac and two iPods I have purchased as refurbs have looked new. They just come in a plain brown box instead of the fancy retail packaging. The warranty is the same as new.

  • Quick Question: When to use ( ) and when to use [ ] and why the ( *)

    Hi all,
    A quick question that i'm sure is very simple but is slightly confusing me. I've just started trying to learn Objective-C and am a little confused by ( ) and [ ].
    I get that you use the [ ] brackets when you want something specific from an object, i.e.
    [ textField textColor ]
    and that you use ( ) brackets for things like:
    if ( x == y) {
    But I get confused when I see things like:
    NSLog(@"some text here");
    Why does that get ( ) brackets and why is it not [ ].
    Also another point of confusion, creating methods... Why are some methods done like:
    - (void)awakeFromNib
    And others done like (with the additional "*" added):
    - (NSString *)stringvalue
    As I said, I'm sure this is very simple and obvious, but it is confusing me slightly.
    Thanks in advance!

    Adam:
    As you already know, square brackets are used to send a message to an object, so if a object like myObject implements the method -doSomething, you can call it with:
    \[myObject doSomething\];
    The other use square for brackets have is to index C-style arrays, such as:
    aValue = anArray\[10\]; // Get the 10-element of an array
    However, because C-style arrays are rarely used in Cocoa applications (use NSArray instead) you will not see this situation often.
    Parenthesis in expressions are used to group and prioritize, such as:
    x = 10 * (3 + 5); // x = 80
    If () statements use it to delimit the test expression. Same with while (). for () uses it to enclose the limits and increment statements, etc.
    The other important use of parenthesis is in calling a C function:
    result = foo(3);
    means that you are calling the function named foo with the argument 3, and storing the the return value in the variable 'result'. This is different from a message because a C function is not a method of an object. They exist independently of any objects. NSLog() is a function defined within Cocoa but it is not a method. So, you call it with the traditional C function call syntax. Cocoa defines other functions like NSStringFromRect(), which takes an NSRect as argument and returns a pointer to an NSString.
    And that leads me to your last question. Some methods return simple types, like int, float, or void (i.e. returns no value). These methods will have prototypes like:
    \- \(void\)returnNothing;
    \- (int)returnInteger;
    Other methods return pointers to types, like:
    \- (int \*)returnPointerToInteger;
    \- (void \*)returnPointerToAnything; // In obj-C one typically uses id instead of void*
    Returning whole objects from methods has problems and it is better to just return a pointer (the address in memory) instead:
    \- (NSString *)makeAString;
    The method above returns a pointer to an NSString rather than the entire object.
    Good luck with your learning,
    Juan-Pablo
    Message was edited by: Juan Pablo Claude

  • SAP-XI Real time questions

    could you please provide me some real time questions on sap-xi,
    thank you

    1.  What are the Three types of XI Cache?  How are they used?
    2.  Where would you look to find Logical System in the SLD.
    ANS Business system wizard
    3.  What 2 Data Types are automatically created when the Namespace is saved in the Integration Repository?
    ANS. ExchangeFaultdata and Exchange log data.
    4   Which Development Object in SAP XI forms the "ROOT NODE" of an XML document when an XI message is generated?
    ANS MESSAGE TYPE
    5.  Describe the setting to "Permit Importing of SAP IDOCs or BAPI/ RFCs".  Where is this configured?
    ANS.
    6.  What are the valid types of Message Mappings?  Which is configured with the Graphical User Interface and requires no coding?
    ANS. MESSAGE MAPPING, XSLT MAPPING, ABAP MAPPING AND JAVA MAPPING, MESSAGE MAPPING REQUIRES no coding
    7.  What actions should you take if your Business System does not show when attempting to "Transfer from the SLD"?
    8. What is the relationship between Product, Product Version, Software Component and Software Component Version?  Give an example.
    ANS. PRODUCT: Represents a collection of all versions of a product . In SAP environment , a product corresponds to an SAP technical Component, eg 4.6c,4.6d,4.7
    COMPONENT: Represents a collection of all versions of a software components Examples of Software components are SAP_APPL,SAP_ABA,SAP_HR Software
    9.  Describe the Design Repository (DR) objects you created to configure a scenario.
    10.  What are the different design time components used by XI?
    11. What monitoring service does the integration server provide?
    12.  Describe the alert functionality of the runtime workbench.
    ANS Message alerting allows to set conditions for triggering Alerts. This allows notification of the correct parties for a specific classes of  errors.
    13.  In BPM, if you have async-sync bridge, does the QOS change?
    14.  What is logging/ trace? List 4 ways to enable logging/ trace?
    15.  Properties of an async message?
    16   Inbound XI message has problem, where do you look for solution?
    17.  Describe XI message format.
    18.  Describe end-to-end monitoring.  What is it?  How is it configured?  What are the different   views?
    ANS  It is a tool for monitoring end to end technical processes involving multiple components.
    to configure end to end monitoring :1. On initial screen of runtime work bench ,select configuration tab page.
    2.enter the logon data for the monitoring server.
    3.choose display.
    4.system displays the components of the correct domain and the integration server is selected as default.
    5.select the other components that you want to use and configure them as sender or receiver ,or both  depending on the component type.
    6.we can select monitorin level that we want to use for each of the selected component.
    7.Choose save configuration .
              Processes overview and the instance view are the two different views
    19. Different steps to make a Sender IDOC adapter work?
    20. JMS adapter can talk with what type of systems?  Give some examples...
    ANS Messaging systems to the integration engine
    21.What format can JDBC adapter communicate in?  Should you use native SQL?
    ANS. JDBC adapter converts data base content to XML messages and the other way around.
    22.If communications with JDBC using XML format, what are 4 actions you could do?
    ANS. SELECT, INSER, DELETE , UPDATE.
    23.  How does PCK and adapter framework engine differ?
    ANS.
    24.  Can JDBC adapter query DB tables?  Can it insert?
    ANS. Yes
    25.  JMS adapter scenario messaging system provider needs to submit what?
    26.  List some properties of receiving IDOC adapter.
    27.  JDBC/ JMS required certain steps before they can work?
    ANS vender specific JMS driver must be deployed on to the J2EE engine using SDM
            Appropriate JDBC driver must be deployed on the system
    28.  What is ALEAUDIT with respect to IDOCS?  When will they use it?
    29.  Properties of the HTTP adapter, does it use or need a sender or receiver communications channel or agreement?
    30.  What does a RFC adapter support?
    ANS sRFCs and tRFCs
    31.  Is EOIO supported by RFC?
    ANS No
    32.  What are the advantages of using a decentralized adapter engine?
    ANS.
    33.  What are the different monitoring statuses?  Where do you find them?
    ANS  Different monitoring statuses are Message Monitoring, Component monitoring , performance  Analysis and Alerting and we find this in Runtime Workbench.
    34.  What adapters are not in adapter engine? code you can type in,
    ANS HTTP and IDOC adapters are not in adapterengine and we can type code in  IDOC
    A.  Which ABAP proxy, in or outbound has Which one used classes with regards to Sync/ Async what is the method call?
    36.  With an optional node what would be the cardinality?  How do you make sure the subordinate fields get mapped?
    37.  WSDL what is it?  Where do you find it in Repository?  Is it used in Java or ABAP proxy?
    38.  XI 3.0, what are the supported mapping types?
    ANS Message mapping, ABAP mapping, JAVA mapping and XSLT mapping
    39.  What are the prerequisites for importing customer defined IDOC?
    ANS
    40.  What are the three IDOC transactions in XI?
    ANS  SM59, IDX1and IDX2.
    41.  Context object replace what?
    ANS  Xpath
    42.  Two things can make up a collaboration agreement, what are they?
    ANS Sender agreement and receiver agreement
    43.  What is a logical system, with respect to SLD?  Where would you assign it?
    ANS
    44.  What is the sender communications channel?
    ANS specify the potential senders of messages and the technical communication path
    45.  If error during inbound or outbound binding, where do you look to solve?
    46.  URI, URL and URN what are they and what are their differences?
    47.  To perform content based (logical) routing, two places it can be done.  What are the two places?
    48.  What is an integration process?  Where is it executed?  What stake?
    49.  In a message mapping you have advanced user defined function, can you test for context changes, if yes how?
    50.  What is multi-mapping?  Where is it used?  What are the advantages?
    ANS Multimappping is any mapping that involves N messages either or source or target side   Multimapping can be used in ccBPM
             1.used to map abstract interfaces
             2. Development is same as message mappings.
             3.n:1 transformation
             4.1:n transformation
             5. n:m transformation
    51.  What are the two XSLT tags, previously that could not be used in XI?
    ANS
    52.  Using a simple user defined function how can you send trace information to be monitored?
    53.  What is function "exists" in message mapping?
    ANS We can handle the error by checking whet her the source tag exists and if it does not we can pass an empty value, which generates the required target field.
    54.  What Jar file is required to perform Java Mapping?
    ANS
    55.  What is context in message mapping and how is it used?
    56.  What is remove context and splitby value?
    ANS to remove parent context of an element and spliby value is counterpart of remove context.
    57.  Where can you use user defined function?  What is its scope?
    58.  If you are building Java mapping class which class interface must it implement?
    59.  What is the scope of mapping template?
    60.  How does a Boolean function work in message mappings?
    61.  Source message occurs 3 times, target only once, what is wrong?
    62.  In simple mapping - one source results in 4 identical target messages, with regarding cardinality what is the problem?
    63.  What is a prerequisite to do ABAP mapping for a comple transformation?
    64.  What step can be inserted into an exception branch?
    ANS
    65.  How do you get an error condition to generated an alert?
    ANS
    66.  What actions can you perform in SXI_CACHE?
    67.  What is a wait step and why is it used?
    ANS It is a process flow control relavent and is used toset start time for next step
    68.  What is a block step and why is it used?
    ANS
    69.  Could multiple instances of an integration process be running at the same time?  If so, how does a message find its way to the correct instance?
    70.  Which XI objects can be used in an integration process?  Which ones from Repository?
    71.  Send message within an integration process to 8 receivers at the same time, how can you do this?
    72. What is a correlation?  What is a local correlation?
    73. What is the relationship between an integration process and business workflow?

  • Quick Question (re:exporting from iMovie into iDVD)

    Hello everyone!
    I just have a quick question for you all... (I want to see if this is normal - I'm on a deadline and this is kind of freaking me out)
    So, we have a 20 minute or so video in iDVD. It plays fine, etc etc. The goal is to burn it to a DVD.
    I used the "Export -> to iDVD" function in iMovie, which launched iDVD.
    But here is the weird thing: nothing comes up in iDVD. It doesn't make a new file, doesn't give me anything... it is just open, waiting for me to create a new project to work with.
    YET, if I look in the Activity Monitor, I do see that EncoderServer (using 123% CPU) and ThumbnailServer (both iDVD processes) are running.... but shouldn't iDVD have told me it is working or that it is dealing with data?
    This is very un-"apple". I totally would have expected a progress bar of some sort in iDVD telling me it is working or something.... or is something wrong and I should try to export it in a different way?
    (I guess the underlying question is: when you export from iMovie to iDVD, does iDVD normally give you any 'heads-up' that it is working? how long does it normally take to open the project in iDVD?)

    Hi Matt!
    when you export from iMovie to iDVD, does iDVD normally give you any 'heads-up' that it is working? how long does it normally take to open the project in iDVD?)
    Yes, and it's instant.
    What you should see is iDVD opening and asking you to create a new project, It will suggest naming it the same as the iMovie project.
    There are reports that exporting from Imovie to iDVD can produce problems. What I do is save the iMovie project and close iMovie. Open iDVD, create the new DVD project, then go the File menu in iDVD, scroll down to Import, and in the side menu select Video. This open your Movie Folder, wherein resides your iMovie project. Select it and it imports into iDVD in a flash.
    Remember: iMovie projects go in the Movies Folder, iDVD projects go in the Documents folder. Change that, and they get very confused and unhappy.

  • Just a quick question regards my mobo..

    I might possibly bricked my motherboard which I already ask a while back,, just a quick question,,, Now I did hooked up the powersupply to the motherboard alone,,, no other components,,, just the PSU and motherboard,,, then I use a paperclip to put static force on the motherboard's power button ( where powercables on the case should suppose to be in ),,, now the motherboard just keeps on blinking as my problem b4,, so its really the motherboard right??? I just want to confirm that the motherboard is the problem and no other components... thnks

    It is finally enough n2th2n. Don't open tons of threads for the same issue. For your board issue use your original thread: forum-en.msi.com/index.php?topic=184002
    Consider this a final warning.

  • Screen not flush with bezzle,quick question...

    Hey guys I have a quick question,ok so I just visited a apple store and recieved a new/referb. iPhone 3gs because of dust under the screen and noticed that the replacement phones bezzle and screen isn't flush and was wondering if i could bring the new phone in for a replacement phone with a flush screen? It's not realy a big issue but the first iPhone 3gs I had didn't have this problem.
    Also has anyone had any experiences with this issue?
    Thanks for your time and your help,
    Noah
    Message was edited by: Mr.Noah Renfrow
    Message was edited by: Mr.Noah Renfrow

    the 3GS is known for that. you should be able to return it.

  • Hi. Quick question I am working with Panasonic GH3 footage and it is playing back in slow motion?

    Hi. Quick question I am working with Panasonic GH3 footage shot using .MOV wrapper with their IPB 50mbps and All-Intra 72MBPS codecs and they are playing back in slow motion in Sg CC. The footage works fine in PP CC and I have no clue on how to fix it. Is this a bug or do I a have a setting wrong some place?

    Yes it turns red this is silly PP and AE have no problem with playback for these codecs. So it is indeed Sg not handling the codec correctly and not my system?
    What if I transcoded it to something else other than the previous what would you reccommend?
    I was going to transcode to ProRes but 5DtoRGB does not work on Windows with GH3 codecs.
    What is the correct time warp seting under clip properties? I screwed with it and forgot the default setting.
    Is there a way to reset Sg back to defaults settings globaly. I tried to many settings trying to fix the playback and may have left something in the wrong state.
    Thanks...

Maybe you are looking for

  • How do I use an XML file to stream information to a Webapp?

    I am trying to use XML generated by an event calander application to set it up with an image slider on the sites webpage. I need it to read in event info and use a picture so that the slider can show "Upcomming Events". It would have a picture, date

  • Printer won't print after replacing router

    HI, I just bought a new Imac AND an extreme base station (the system is 10.6.3snow leopard). I also have few other computers (mac book pro that I upgraded to system snow leopard), an old G4 and a pc. All these are connected to a network (which was no

  • CALL transaction using itab aswell as skip the first screen

    Hi All, I am doin BDC for some Ztransaction and i am that transaction using CALL TRANSACTION... but i want to skip the first screen of the Ztransaction as well as pass the Itab .. mode .. update and message table.... how can i do it... CALL TRANSACTI

  • SAP Implementation

    Hi gurus, Can you please share your implementation experience with me please. I want to know When we start implementation,project preparation and AS IS-TO BE is fine. But when we start realization stage from where should we start configuration first?

  • Cannot add GRPO - internal error occurred

    Hi, Good day!!! We encountered this error [Goods Receipt PO u2013 Rows u2013 Warehouse Code][line:0], u2018Internal error (118) occurredu2019 [Message 131-183] when creating GRPO for foreign currency.There are formatted search define on the unit pric