Can someone solve this issue on Java programming for me.

/**
* Challenge
* Alice throws a party with invited other N.  One of the guests starts a rumor
on the Alice to say things to one of the other guests.  A person hearing this rumor
for the the first time, he tells another guest chosen at random among all people
* in the evening except 2 people: the person hearing go and Alice.  No one in the case
* hears the rumor again, he or she does not spread the rumour any more away.
*
Write a program that returns the LIKELIHOOD (of a double value) that everyone in the
* Party hears the rumor.  You can use an array of size N and simulate this problem
* 500 times to generate an approximate probability.
*/
public static double rumor (int N) {}
}

Muhammad

This is beyond the scope of this site, I would try the relevant section on Technet or MSDN

http://social.technet.Microsoft.com/forums/en-us/user/forums

Tags: Windows

Similar Questions

  • Can someone solve or give me a solution for this problem...?

    Hello world!

    Can someone solve or give me a solution for this problem...?

    We used two folders Source & Finalwork. We get image Source folder and path of silo put & moved to Finalwork folder.

    Is it possible to check if the two colors of Embedded images folder profile identical or not.

    -yajiv

    Could you elaborate what you mean by that

    We get image Source folder and path of silo put & moved to Finalwork folder.

    Perhaps with a screenshot to illustrate the task?

    // 2012, use it at your own risk;
    #target photoshop
    var theFolder = Folder.selectDialog ("select source folder");
    if (theFolder) {
    var theFiles = theFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
    };
    var theOtherFolder = Folder.selectDialog ("select target folder");
    if (theOtherFolder) {
    var theOtherFiles = theOtherFolder.getFiles(/\.(jpg|tif|eps|psd)$/i)
    };
    var missingFiles = new Array;
    var unmatchedProfiles = new Array;
    // work through files;
    for (var m = 0; m < theFiles.length; m++) {
              var check = false;
              var theFile = theFiles[m];
    // find name of the same name;
              for (var n = 0; n < theOtherFiles.length; n++) {
                        var theOtherFile = theOtherFiles[n];
    // if one is found;
                        if (theFile.name == theOtherFile.name) {
                                  check = true;
                                  var oneFile = app.open(File(theFile));
                                  var otherFile = app.open(File(theOtherFile));
    // check profiles;
                                  if (oneFile.colorProfileName == otherFile.colorProfileName) {
                                            }
    // collect umages with unmatched profiles;
                                  else {unmatchedProfiles.push(theFile)};
                                  };
                        };
    // collect missing files;
              if (check == false) {alert ("hahaha");missingFiles.push(theFile)}
              };
    // alert of problems;
    if (unmatchedProfiles.length > 0) {
    alert ("the corresponding files for these do have a different color space:\n"+unmatchedProfiles.join("\n\n"));
    };
    if (missingFiles.length > 0) {
    alert ("these files miss corresponding ones:\n"+missingFiles.join("\n\n"));
    };
    //////
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|pdf|)$/i)) {
            return true
            };
              };
    
  • When I clik on a link to view another Web page or another document, a blank page appears (a single "point of png'). How can I solve this issue?

    The links are located on the emails I receive from authorized sources. When I click on the links to read the additional documents (another document) or display a picture, I get a blank page with a single point in the middle of the page. The tab header says it's an image (1 x 1 pixel) PNG. Any suggestions to fix this?

    Often, links to email in bulk are routed via a follow-up rather than service directly to its final destination. If you look at the address bar on the image page, it seems like one of these intermediaries rather than the page you expect to load? If you click on the address bar and press ENTER to retry the address, which does nothing?

    It is possible that the security software or security add-on kills a redirect from this intermediate page to the final destination. For example, I think the anti-banner Kaspersky functionality could do that.

  • Error message: "the application failed to start because its side-by-side configuration is incorrect." How can I solve this problem?

    Program does not start. Error message "could not start because its side-by-side configuration is incorrect." How can I solve this problem?

    Program does not start. Error message "could not start because its side-by-side configuration is incorrect." How can I solve this problem?

    Solved!

    http://answers.Microsoft.com/en-us/windowslive/Forum/Messenger-wlinstall/the-application-has-failed-to-start-because-its/3f8a8186-9E97-4962-BE5D-b453b1597a78?tab=AllReplies#tabs

  • I get the pop-up windows and windows that automatically open on my browser, how can I solve this

    I get the pop-up windows and windows that automatically open on my browser, how can I solve this

    Do a scan for adware with Malwarebytes: http://malwarebytes.org/antimalware/mac.

    (copy and paste the link above into the address bar of your browser).

  • iTunes continues to crash on my iMac using OS 10.11.4 forcing me from quitting smoking. Someone else has this problem and how can I solve this problem?

    iTunes continues to crash on my iMac using OS 10.11.4 forcing me from quitting smoking. Someone else has this problem and how can I solve this problem? I use the latest version of iTunes. There seems to be a problem since I updated the system software.

    iTunes: solving problems with third party plug-ins iTunes - https://support.apple.com/HT203395 - press Option and command (on Mac OS X)

    Hold down the option/alt key and create a new test library. If iTunes start your old library file is corrupted and will need to be replaced from a backup or rebuilt from scratch.

    LINC Davis February 2016 - https://discussions.apple.com/message/29767369#29767369

    Reinstall iTunes:

    -Post of Niel April 2015: re - install iTunes app - https://discussions.apple.com/message/28055467#28055467 - delete the old application first, with instructions on how to do it.

    -April 2015 LincDavis post with some more details on the method outlines Niel - https://discussions.apple.com/message/28101611#28101611

  • This message appears when installing a program on windows 7, how can I solve this problem?

    "An error occurred during which create the directory: c:\Users\Dell\AppData " this message appears when installing a program, how can I solve this problem?

    Hello

    1. what application are you trying to install?
    2. are you having this problem only during the installation of this particular application?
    3. did you of recent changes on the computer before this problem?

    Method 1:

    I suggest you run the fix it and check if it helps.

    Diagnose and resolve program install and uninstall problems automatically.
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall/en-us

    Method 2:
    If the problem is not resolved I suggest to try the steps and check if that helps.

    a. When you try to install the program, go to this folder:

    C:\ProgramData\Microsoft\Windows\Start Menu

    b. right-click on the folder and then click Properties.

    (c) in the Properties window, click Security tab.

    d. click Edit and then click Add.

    e. all type in the box, and then click OK.

    f. then Select the full control check box.

    g. click apply and then click OK.

    Check out the link: what to know before applying permissions to a file or folder
    http://Windows.Microsoft.com/en-us/Windows7/what-to-know-before-applying-permissions-to-a-file-or-folder

    Method 3:

    If the problem persists, you can check if all background programs is the origin of the problem.

    To check this, you need to put the computer in a clean boot state and try to install the program. To put the computer in a clean boot state, follow the link below.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: When you are finished troubleshooting, follow step 7 article to start on normal startup.

    For more information, please see the link.

    Install a program
    http://Windows.Microsoft.com/en-us/Windows7/install-a-program

    Hope this information is helpful

  • LR6 sign in questions, LR6 guard, asking to be signed every time the program is launched.  How can I solve this problem

    So whenever bloody this program is launched it ask me to connect.  I have to retype the user name and password.  I find it more annoying.  How can I solve this problem.

    Hi richards56312323,

    Could you please check the Host file and see if there is any input for Adobe.

    If there is no entry please remove it, also please take a look at the following article: Adobe Creative Cloud connection errors

    Kind regards

    Tanuj

  • I can't solve this problem: "Error loading C:\WINDOWS\awuvomas.dll the specific module is not found." Can help you!

    Original title: cannot find awuvomas.dll

    I can't solve this problem: "Error loading C:\WINDOWS\awuvomas.dll the specific module is not found."  Can help you!

    It is sometimes easy to get rid of the error message by doing something like disable the startup item in msconfig (if you can still find), but I suggest you fix the problem and difficulty not only the symptom of the problem by simply deleting the startup message.
    I would also not recommend you start digging in the registry to try to find the startup item and remove it unless you have a backup of your system or at least a backup of your registry, because there is no 'Cancel' or 'quit without saving changes' option in regedit.  If you make a mistake, that's all.
    These ideas relieve 'rapid' and sometimes risky of the symptom if they not even work at all, but they can't actually solve the problem.  Also, I'd be suspicious of ideas that begin with the words "try."  You don't need to try things, you need to fix things.  You don't need to try ideas that might work, you must do something that will always work all the time.
    Here are the detailed instructions that protect you and solve your problem in the 'right' way.
    There is very little. DLL files that should be loaded from the C:\WINDOWS folder and is not one of them.  If you do not have a good explanation for the name of the file in a Google search, the chances are good that your system is currently or has been infected by malware.
    A "Cannot find...". ', ' Failed to start..., "Could not load..." ». "Might not work... "" Cannot run ""error loading... ". "or"specific module could not be found"message at startup is usually related to the malware that has been configured to run at startup, but the referenced file has been removed after a malware scan, leaving behind him a startup item or the registry entry pointing to a file that does not exist.
    It might be a removal of malicious software or an application not installed.  The entry may have a curious looking name since it was probably generated at random when the malware was installed. If you search your system for the referenced file, you may not find.
    Windows attempts to load this file but cannot locate because the file has been deleted for most probably during an analysis of the malware. However, an orphaned associate of remainders of startup parameter or registry entry and tells Windows to load the file when you start or connection.
    So you should delete the referenced entry Windows stop trying to load or run the file. It may or may not be included in the registry, but you can find it.  Autoruns (see below) you get the elements no matter where it is.

    You must be sure to solve the problem and not just fix the symptom of the problem by simply relieving your message - system is not a fix (there is a difference).

    If you just locate and uncheck the item in msconfig, which disables the element but does not remove the reference to the element of false starting your computer.   The msconfig program is not a Startup Manager, that's a troubleshooting tool.  Disabling things in msconfig to put an end to the messages and think that your problem is solved is short-sighted and leave behind him a sloppy XP configuration.  Just disable the display of a start-up error message should not count as a 'solution' to the problem.
    If you are comfortable editing the registry, you can find and remove the reference directly from there or remove it using a popular third-party tool called Autoruns.  The problem can always be found in the registry well.
    Before making any changes to your registry by hand or with third-party tools, don't forget to first make a backup of the registry
    . There is no cancellation or exit without saving the option in regedit.
    Here is a link to a popular registry backup tool:
    You can also use the Autoruns to find the element of start remains little matter where he's hiding.  Autoruns does not install anything on your computer.  It will display all startup locations where the reference may be then you can turn it off or remove it completely.  Here is the download link for Autoruns:
    Run Autoruns.exe and wait that he at the end of the filling of the list of entries.
    When the Autoruns is finished scanning your system, it will say "Ready" in the lower left corner.  Autoruns can be a little intimidating to first if you have never seen it before because it displays a lot of information.  You are really interested only a few sections.
    The problem is usually to start the system or the user startup entries, then click the connection tab and see if the startup item is there.
    Scroll through the list and look for a boot entry associated files in the error message.
    If you can't find on the connection tab, look in any tab.
    You can also click file, search to search for logon, or any tab for all or part of the name of the element.
    Right-click on the offending entry and choose Remove.  If you are not sure what it is, you can just turn it off, restart and if the problem is resolved and things are functioning normally and everything works fine, then remove the offending entry.  If you don't see it in Autoruns, you may edit the registry and remove the item from your startup folder it.  Autoruns shall display the same information however.
    Given that your system has or has had an infection, follow up with this:
    Perform scans for malware, and then fix any problems:

    No matter what you use for malware protection, follow these steps:

    Download, install, update and do a full scan with these free malware detection programs at:
    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/
    They can be uninstalled later if you wish.
    Restart your computer and solve the outstanding issues.
  • My dragon nest does not work because r6002 og. How can I solve this problem?

    My dragon nest does not work because r6002 og. How can I solve this problem?

    Hello

    Thank you for your response and keep us updated on the status of the issue.

    This error can occur because of a program using Visual C++.

    You can uninstall all existing Microsoft Visual C++ Redistributable Package and install the latest package to check if it helps.

    Step 1: To uninstall the package.

    a. click Start, open Control Panel.

    b. click on uninstall a program.

    (c) in the list, find him Package redistributable Microsoft Visual C++ and click it.

    d. click Uninstall at the top of the list.

    Step 2: Download and install the latest package and check.

    Download details:

    Note:

    X 86 32-bit operating system =

    X 64 = 64-bit operating system

    Package redistributable Microsoft Visual C++ 2010 (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=A7B7A05E-6DE6-4D3A-A423-37BF0912DB84&displaylang=en

    Package redistributable Microsoft Visual C++ 2010 (x 64)

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=14632

    If the problem persists, or you have questions about Windows, do not hesitate to let us know. We will be happy to help you.

  • I have tally 7.2 work well in Windows 7, but when I installed window 8, tally 7.2 does not work, how can I solve this problem

    I have tally 7.2 work well in Windows 7, but when I installed window 8, tally 7.2 does not work, how can I solve this problem

    Hello

    Thanks for posting in the Microsoft community!
    I'm sorry to hear that tally 7.2 does not work with Windows 8. I hope that the steps helps you to solve the problem.
    Before troubleshooting, provide us with information.
    1. what happens when you try to use tally 7.2?
    2. you receive an error message?
    3 is the issue limited to match 7.2?

    You can check if the software is compatible with Windows 8.
    Make the programs more compatible with this version of Windows
    http://www.Microsoft.com/en-us/Windows/compatibility/WIN8/CompatCenter/home?language=en-us
    If this is not the case, try to run the program in compatibility mode.
    http://Windows.Microsoft.com/en-in/Windows-8/older-programs-compatible-version-Windows

    Check the event viewer for error logs.

    a. move the mouse to the bottom left of the screen and right click to see a list of options

    b. Select Event Viewer

    c. click an event log in the left pane

    d. double-click an event to view the details of the event. Events are classified as error, warning, or information, depending on the severity of the event.

    Let us know if the suggestion provided was useful. If you have additional questions, we will be happy to help you.

  • I get an error message on itunes app crash coreaudiotollboc.dll How can I solve this

    I get an error message on itunes app crash coreaudiotollboc.dll How can I solve this

    These errors can usually be fixed by removing the offending dll, then fix the component it is programs and features Control Panel. CoreAudioToolbox.dll belongs to Apple Application Support and are normally in

    • C:\Program Files\Fichiers Files\Apple\Apple Application Support or
    • C:\Program Files (x 86) \Common Files\Apple\Apple Application Support

    where the name of the Program Files folder may vary depending on the region.

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    TT2

  • Orb iTunes turns when you try to sort Apps on Iphone s 6 using Mac or PC. How can I solve this problem?

    Orb iTunes turns when you try to sort Apps on Iphone s 6 using Mac and PC at different times. Applications do not appear to the right of the applications that are registered in the ITunes applications library. How can I solve this problem?

    Hi leon4444,

    Welcome to the communities of Apple Support! I'm sorry to hear that you are having these problems with your iPhone. I'm kinda not clear on the exact nature and scope of the issue you describe, but if you are having problems sorting or organize your apps using iTunes, you can verify that you follow the procedure described in the following article:

    12 iTunes for Windows: Sync and organize iOS apps

    Concerning

  • Firefox does not open a new tab page, but if I use the "right mouse botton"-&gt; "Duplicate tab" as it opens a new tab how can I solve this?

    Firefox does not open a new tab page, when I click on the small + firefox does not respanw, but if I use right mouse botton -> tab double as it opens a new tab how can I solve this?

    Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.

    There are a few places to check for the Ask toolbar:

  • Since I upgraded my MacBook Pro does work ' t toolbar, and safari crashes constantly. How can I solve this?

    Since I upgraded my MacBook Pro does work ' t toolbar, and safari crashes constantly. How can I solve this?

    Turn off the Suggestions of Safari in the preferences/Safari/search / uncheck Safari Suggestions.

    Latest issue of the Safari search bar

    http://osxdaily.com/2016/01/05/fix-Safari-freezing-address-bar-use/

Maybe you are looking for