I want ti implement the following

Hi everybody,
I have to implement the following idea and I dont know how. Any help will be apprciated.
The idea is to scan an array for zeros, one a sequence of zeros is found then find its center and save in another array ?
The folloaing image illustrate the idea
http://nomatterwhat.jeeran.com/idea.JPG

Thanks jos. I did the following modifications and it works now but I don't know if this is the end of the problems and also I'm not convinced by the initialization of zeroscenter[] since I initialize it by
Int zeroscenter[]  = new int [100] ;here is the new version of the code:
for (int i = 0; i < oneDim.length; i++) {
            if (array1[i] == 0) {
                mark1 = mark2 = i;
                i++;
                if (i >= oneDim.length){
                    zeroscenter[j] = mark1;
                else
                    while (array1[i] == 0)
                      mark2++;
        i++;
                zeroscenter[j] = (mark1 + mark2) / 2;
               j++;
}

Similar Messages

  • Implement the following scenario for credit memo

    Dear experts!
    Thank you for your attention!
    how to implement the following scenario for credit memo??????
    1.Credit memo requests are usually blocked for billing (that is, credit) upon creation until the
    employee responsible releases this block.
    2.Within our company, we want make the definition of the point at which the check is carried out and
    the employee responsible dependent upon the value of the credit memo request.
    3.If the value of the credit memo request is below a certain minimum limit, then it can be released
    automatically by the system.
    4.The workflow within the framework of credit memo processing now guarantees that the employee
    responsible is automatically determined and informed when a credit memo request is created,
    depending on the value involved.
    waiting for your help!!!!!
    Best regard!
    Tangdark

    Hi,
    Hope so you know all the setting regarding credit memo customizing.
    Otherwise use the standard one.
    Regarding authorization go to PFCG and create a new role.
    In that you can maintain the authorization regarding the minimum credit limit.
    Please check out this setting.
    And update me also if I was wrong.
    Regards
    Raj.

  • How to I get rid of pop up user account control "do you want to allow the following program to make changes to your computer" I have windows 7 professional.

    I keep getting an annoying pop up the says "User Account Control" "Do you want to allow the following program to make changes to your computer"
    == This happened ==
    Every time Firefox opened
    == Two days after I downloaded Firefox and set as my default browser.

    Check that you do not run Firefox as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.
    You also need to check the Properties of the firefox.exe program in the Firefox program directory.
    If you can't make the changes then you need to start Windows Explorer as Administrator.

  • "Do you want to allow the following program to make changes to your computer?" I get this message in a box everytime I open firefox. I answer "Yes" but it continues. Please help.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/856850]]</blockquote>
    "Do you want to allow the following program to make changes to your computer?". I get this message everytime I open Firefox. I select "Yes" and then the program opens. However, I continue to get this question everytime I open firefox. Please help.

    Can anyone answer my question?

  • "Do you want to allow the following program..." Message

    After installing iTunes 9.2 on my Windows 7 (64bit) laptop, every time I attempt to open iTunes it gives me a message asking "Do you want to allow the following program to make changes to this computer?". Clicking yes leads the programme to open, but the message appears every single time upon opening.
    Also, when iTunes is minimized to the task bar, it will not open and maximize, and doesn't appear as one the applications running on the task manager and must be shut down through the processes.
    I have uninstalled all Apple software and reinstalled iTunes multiple times as well as moved all my music off my computer.
    Any ideas on a solution?

    Many thanks. I think we'd better try rebuilding your iTunes preference files in the account that is getting the errors.
    For the basic technique, see the *Remove iTunes Preference files* section of the *User-specific troubleshooting* section of the following document:
    [iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues|http://support.apple.com/kb/TS1717]
    *Prior to doing the preference file rebuilds:* Best to make a note of any custom preferences you have set up for your iTunes. (Rebuilding pref files returns preferences to their defaults ... so you'll likely have to set some of those custom preferences up again from scratch.) Also make a note of any third-party plugins/add-ons you have installed. You may have to reinstall those after the rebuilds.
    *Things to watch out for during the rebuilds*
    Rebuilding the preference files in the \Local\ location causes the iTunes license agreement to run. So you'll need to agree to that again.
    Rebuilding the preference files in the \Roaming\ location causes the iTunes Setup Assistant to run. When prompted to do so, *do not* add files to your iTunes library. (Otherwise you'll end up with a library full of duplicates.)
    ... are those measures of any help with the launch error and the maximising troubles in your usual user account, sana?

  • "Do you want to allow the following program from an unknown publisher to make changes to this computer?" I mean....what would you do? Is it safe to click yes....(Don Don Don...*sound effect*)..please help...

    Okay everybody...so I'm on the struggle bus so I'm going from Photoshop cs6 off my old broken laptop to trying to dwn Photoshop Cs2...either way I love PS. Now when I tried downloading it for free from Adobe...succeeded...but when I went to the download folder to install it, it said "Do you want to allow the following program from an unknown publisher to make changes to this computer?" I mean....what would you do? Is it safe to click yes....(Don Don Don...*sound effect*)..please help...

    If you already have a license for photoshop cs6, why do you want photoshop cs2?
    You can just install photoshop cs6 on your new computer provided both operating systems are the same kind (both mac or both windows)
    If you don't have an install dvd for cs6, you can download photoshop cs6 from here and use your serial:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • Every time I try to log on I get: "Do you want to allow the following program to make changes to this computer?"

    A few days ago I started getting the following message EVERY time I try to log on:
    "Do you want to allow the following program to make changes to this computer: It lists FF and Mozilla Corp.
    I have to click "Yes" EVERY time and then it my Comcast homepage appears.
    I have a PC using Windows 7.
    In addition, when my homepage does appear, the 3 little icons in the upper right do not appear. (Minimize, X)

    A possible cause of this error is that Firefox is set to run as Administrator.
    Check that Firefox isn't set to run as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    * Privilege Level: "Run this program as Administrator" should not be selected
    * "Run this program in compatibility mode for:" should not be selected
    Also check the Properties of the firefox.exe program in the Firefox program folder (C:\Program Files\Mozilla Firefox\).

  • How do I get rid of 'Do you want to allow the following program..."?

    I have recently installed Windows 7 on a new computer and have also installed Dreamweaver MX.
    Whenever I open Dreamweaver, it comes up with an annoying message "Do you want to allow the following program to make changes to this computer?"
    My question is this - how can I get Windows 7 to recognise Dreamweaver MX so that this message does NOT come up anymore?
    Or do I have to upgrade my Dreamweaver to the latest version (probably quite expensive).
    To see a screenshot of a similar message, see this thread:
    http://www.sevenforums.com/general-discussion/14310-how-get-rid-do-you-want-allow.html
    Thank you

    chuckee wrote:
    Or do I have to upgrade my Dreamweaver to the latest version (probably quite expensive).
    Thank you
    As Murray stated, it's been about 8 years.  Adobe only allows you to upgrade from the previous 3 versions.  Right now they are on CS5 (11) which means you can upgrade from Dreamweaver 8 which is 2 versions after yours.  So you would have to buy the full version again.  Buying the upgrade is no longer an option.

  • How do I get rid of "do you want to allow the following program to make changes to this computer"?

    I recently installed Adobe Acrobat 8 Professional and every time I open a PDF file that is stored on my computer, I get a pop-up that asks "Do you want to allow the following program to make changes to this computer?".  How do I get rid of this?  I don't want to change my security settings, I just want to open pdf's without having to go through this step.
    I'm using Windows 7.

    Thanks for that good idea.  I checked the "properties" by right clicking on the AA8 icon and under "compatability" I noticed it had Windows XP (Service Pack 3).  Since I'm running Windows 7, I changed it to that and now I don't get that annoying pop-up!

  • Recurring message "Do you want to allow the following program to make changes to this computer"

    Operating System: Windows 8  Printer: HP Photo Smart 6520 e All-In-One   Whenever I click on the icon on the desktop I get "Do you want to allow the following program to make changes to this printer" if I click yes the connection setup window pops up to choose a connection, I have already choosen a connection for my PC, laptop and tablet and everything works. How do I fix this its becoming annoying. Thanks

    You need to change the security level in Windows 8.  Microsoft issue.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Windows7 asks: "do you want to allow the following program to make changes to your computer"? " in English

    I have two computers with windows 7 Home Premium. Whenever I launch Firefox on one, it launches just fine. On the other, I always gets this message: "Do you want to allow the following program to make changes to your computer"? " How can I fix this ?? Thanks......
    phrank

    None of that worked for me. And I don't think disabling UAC is a good idea at least if it's a work computer rather than my own.

  • Do you want to allow the following program from Unknown Publisher - Program Name: CompMgmtLauncher.exe etc

    Dear All,
    I'm facing some issue in WINDOWS SERVER 2008 R2 on each windows settings its prompting for UAC  like on windows settings (Server Manager, Network Settings, Firewall Settings etc) and in Publisher "Unknown"
    is showing though its windows settings.
    ERROR: "Do you want to allow
    the following program from Unknown Publisher. . . . "
    Program Name: CompMgmtLauncher.exe 
    These prompts only occurs with domain user though its a member of administrator group on that local machine while logging with local administrator user this doesn't happen.
    Thanks
    REGARDS DANISH DANIE

    Hi Danie Danish,
    Would you please let me know current situation of this issue? Have you referred to britishdhez’s suggestion
    and solved it?
    Just additional. Please use anti-virus software to scan the server. Meanwhile, please run
    sfc /scannow command to check protected system files.
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Disable prompt for "This Website wants to install the following Add-on: Java on Windows 7 x64 SP1 IE 10

    Sorry if this is the wrong place to post this-Didnt see any forum or I missed it for Internet Explorer.
    Here is my problem,  We have uses that are running a webpage that is trying to install an older version of Java, The workstation has the latest version of Java, BUT the webpage seems not to care, and wants to put a older version.
    Is there a way I can disable this:
    "This website wants to install the following add-on: 'Java SE Runtime Environment.....'.
    We have uses that will click on the Install button, and thus compromising the workstation.
    Thanks.

    Hi usgrcm,
    This is a security feature if IE and is not tied to whether or not you have a sight “allowed” to use an add-on.  It behaves in this manor to help protect you against malware. Disabling this notification is not a good choice .
    Have you tried to reinstall the Java software to have a check ?
    There is a possibility the present installation has corrupted .Please restart the machine after reinstalling the software.
    "BUT the webpage seems not to care, and wants to put a older version."
    We can try to install the old version to have a check.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • This website wants to run the Following add-on: 'Adobe Flash Player'...

    Alright, So i'm getting this information bar to pop up everytime i enter a new site that has adobe content.
    This website wants to run the Following add-on: 'Adobe Flash Player' from 'Adobe System Incorporation'. If you trust the website and the following add-on and want to allow it to run, Click Here...
    Here's an example picture on cartoonnetwork.com
    (Click to enlarge)
    Now, If i hit allow it will allow it but it pops up on almost every new website i go to and i have to allow it each and everytime.
    Yet my Adobe version is 10,0,32,18 as shown in the picture below.
    I've uninstalled and reinstalled overwritten and uninstalled Internet Explorer 8 with no luck of getting rid of this annoying problem. So if anyone has a slight idea of how to fix this problem i'll try anything because i hate it when something isn't working correctly. (Yes, I've googled around for a good 2 hours with no luck)

    Alright guy's It always happens. Over 90% of the time it's just a matter of time before i fix my own problems. I solved my problem and now it works perfectly fine.
    I'm gonna say how i fixed it so who ever finds this page on google can see how i did it. I uninstalled Adobe Flash Player using the uninstaller from adobe http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe after i did that i went to my system32 folder and delete my adobe folder which still had files left over in it (Deleted the whole macromed folder) C:\WINDOWS\system32\Macromed\Flash
    Note, You need to exit any browser you have up (IE,Firefox,ect) or else you will not be able to delete it and it'll say access denied. After deleting that i installed Adobe Flash Player with a .exe i downloaded from Adobe and it worked perfect! No more annoying message
    Side note, I'm use XP so the marcomed folder might possible be somewhere else if you are useing Vista or Windows 7.

  • I want to  implement the Window autoresize in java swing application

    Hai...
    i want implement the window autoresize functionality in my java application. Same time i want to minimize and maximize my won window. and my java application develop one more frame at time disply in single window so i want disply the thaminal view formate in all frame
    Thanx to Advance.
    ARjun...

    ????????

Maybe you are looking for

  • How can I change order of email accounts in Mail on Mountain Lion?

    In Mail on Mountain Lion I have only two email accounts, but the wrong one has been set as default (because it was an account I had overlooked and added later). I cannot find how to change the order of the email accounts. One possibility is to delete

  • Synchronizing iMac & MacBook Pro causes faulty cursor

    After cloning my iMac and MacBook Pro back and forth a few times using SuperDuper in order to keep them synchronized, the cursors on both machines were intermittently non-functional upon startup.Of course one has a trackpad and one doesn't. I reinsta

  • ADOBE Forms (Creating Dynamic Forms)

    I am currently creating a form using Adobe Professional 8. IT is three pages each created on separate form files (.pdfx). I combine the files into a PDF package. I want to link up the pages together so that when the user types in a value on the first

  • Wine: system font problem

    Hello all, I'm trying to use wine but the system font (e.g. the font used by the menu) is *very* ugly. Is there a way I can change that? Thanks, lang2

  • MacBook vs MacBook Pro

    I am vacillating between a 13" MacBook (just love the Black...) and the 15" MacBook Pro. I've checked the specs out here: http://store.apple.com/Catalog/US/Images/comparison_chart.html The one difference between them that I don't really understand th