Please help; Need 7 simple errors correcting asap to hand in Monday

this code i typed has 2 errors; Can someone correct and help please?
import java.util.scanner;
public class dh{
public static void main(String[]args){
Scanner lire=newScanner(System.in);
double dh=1,somdudh=0;
System.out.printlen("reste");
reste=lire.nextdouble();
System.out.printlen("nb100dh");
nb100dh=lire.nextdouble();
System.out.printlen("nb50dh");
nb50dh=lire.nextdouble();
System.out.printlen(m);
m=lire.nextdouble();
While (dh!=0);{
System.out.printlen("entrer le montrant");
dh=lire.nextdouble();
somdudh=somdudh+dh;
System.out.printlen("vous devez"+dh+"dirhams")
System.out.printlen("montrant verse");
m=lire.nextdouble();
reste=m-dh;
nb100dh=0;
While (reste>=100){
nb100dh=nb100dh+1;
m=lire.nextdouble();
reste=reste-100;
nb50dh=0;
if(reste>=50)
{reste=reste-50;}
System.out.printlen("rendu de la monnaie");
System.out.printlen("billets de 100dh nb100dh");
System.out.printlen("billets de 50 dh nb50dh");
System.out.printlen("pieces de 10 dh reste");
Thank you,
Amissan

goodmorning;i want to think you a lot ,i do want you advice me to do but i still have one problrm please could you check my new code pleaseimport java.util.Scanner;
public class Dirhams{
public static void main(String[]args){
Scannerlecture=new Scanner(System.in);
double dh=1;
double somdudh=0;
double reste;
double m;
double nb100dh;
double nb50dh;
while (dh!=0){
System.out.println("entrer le montrant:");
dh=lecture.nextDouble();
somdudh=somdudh+dh;
System.out.println("vousdevez"+dh+"dirhams");
System.out.println("montrant verse"+m);
m=lecture.nextDouble();
System.out.println("reste");
reste =m-dh;
nb100dh=0;
while (reste>=100){
nb100dh=nb100dh+1;
reste=reste-100;
nb50dh=0;
if(reste>=50)
{nb50dh=1;
reste=reste-50;}
System.out.println("rendu de la monnaie");
System.out.println("billetsde100dh"+nb100dh);
System.out.println("billets de 50dh"+nb50dh);
System.out.println("pieces de 10 dh"+reste);
it s give me 3 errors
1/^Scannerlecture=new Scanner(system.in);
2/dh=^lecture.nextDouble();
3/m=lecture.nextdouble();
these are the 3 errors
thank you once again                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Harddrive Upgrade - Please Help needs to be done ASAP

    I have the MC375LL/A 13.3/2.66/4GB/320 Macbook Pro which I purchased November 2010.  The hard drive only has about 30gb of space left because I have lots of photos, movies & music.  I am looking to upgrade my hard drive to a WD Scorpio 1 TB Internal Hard drive 5400 RPM (UPC: 718037753119 or Model WDBABC0010BNC-NRSN).  Is this hard drive okay to use in my Macbook Pro? Will it work with apple energy conservation software & it’s motion detection software?  Is there another hard drive that I should be looking at aside from the one list? Please Help.

    I can also get the one listed below which is a Seagate.
    http://www.bestbuy.com/site/Seagate+-+Momentus+LP+1TB+Internal+Serial+ATA+Hard+D rive+for+Laptops/5542941.p?id=1218655167046&skuId=5542941&st=seagate%201tb%20int ernal&cp=1&lp=2
    Do you know if this will work with apples energy conservation software & it’s motion detection software? 

  • HT5631 how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    In order to use your Apple ID to create an iCloud account, the primary email address associated with the ID must first be verified.  To do this, Apple will send a verification email to your account and you must respond to the email by clicking the Verify Now link.  Make sure you are check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • HT201320 I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    Contact the email provider and obtain the correct setup information.

  • Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Albums are not places to store photos, they're more like "labels" you can apply to photos to better organize them. A single image file can be in multiple albums... they are not copies, it's simply been labelled as being in all those albums. So what you're trying to do doesn't make sense, because it's based on incorrect assumptions.
    The iPhoto library will always show all photos that you have added to iPhoto.

  • Guys i need to get m itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    guys i need to get my itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    If you've tried to buy something and your've been charged for it (and it's not a temporary store holding charge) but haven't received it then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Please help me to prepare correct procedure.

    Hi,
    My oracle database version is 10.2.0.5
    Please help me to prepare correct procedure.
    Description of Stored Procedure is below:
    DECLARE PNAME Define_Globals.varr255;
    DECLARE PWEIGHTS Define_Globals.varr50;
    DECLARE PYEAR Define_Globals.varr50;
    BEGIN
    execute GEI.MULTI_GLOBEM('SgeiiteFac','1003308','2005,2006,2007,2008,2009,2010,2011','POUNDS',NULL,'All',:PNAME,:PWEIGHTS,:PYEAR);
    COMMIT;
    END;
    /

    919131 wrote:
    Hi,
    My oracle database version is 10.2.0.5
    Please help me to prepare correct procedure.
    Description of Stored Procedure is below:
    DECLARE PNAME Define_Globals.varr255;
    DECLARE PWEIGHTS Define_Globals.varr50;
    DECLARE PYEAR Define_Globals.varr50;
    BEGIN
    execute GEI.MULTI_GLOBEM('SgeiiteFac','1003308','2005,2006,2007,2008,2009,2010,2011','POUNDS',NULL,'All',:PNAME,:PWEIGHTS,:PYEAR);
    COMMIT;
    END;
    /What programming language is this? This does not look like PL/SQL.

  • Please Help needed...Error while generating WebService Proxy..!!

    Hi...
    I am getting an Error when i try to generate a Web-Service Proxy on JDeveloper for one of the Oracle WorkFlow Services viz., the[b] "TaskService"
    ie.,
    http://host:port/integration/services/TaskService/TaskServicePort?wsdl
    The wizard exits with a fatal warning ( WS-30033 -- which i believe indicates Validation of the WSDL failed..!?!) saying
    "uniqueness constraint violation : exception (taskProxy.proxy.faultType already exists)
    Could Anyone please Help me w.r.t this..?!?
    My requirement is to provide a UI for accessing Human WorkFlow Services...other than JSP...So, i am planning to create a Web-Service PROXY for the important Workflow Services like TaskQueryService, TaskService, etc...& then use the "jars" of these clients to invoke the Web-Services...!
    Is there ANY Simpler method of doing this..?!?
    I've seen the Code of the UserSampleUI application, but i can't get a similar code working in my Eclipse...don't know Which JARS are required...?!
    [i tried bpm-services.jar, & others...but it gives me a run-time exception of type PC Exception...!! :(]
    If so, please Do let me know ASAP...!!
    [By the way, ALL this is w.r.t. the [b]10.1.3.1.0 version of[b] Oracle SOA Suite...]
    Awaiting some response....
    Thanks a lot in advance..!

    Hi Calvin,
    You may want to try the 'no data binding' option on the proxy generation. This may enable you to go ahead, with a proxy that is not trying to generate Java code.
    Yo can also try to make a local copy of your WSDL and remove the duplicate type declaration. Using the analyze command from WSA CLI is a quick way to do this itterative testing, as it will not generate the code. Once you have the analyze command going thourg the WSDL, you can go back to using genProxy.
    You can find the documnetation here:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/wsassemble.htm#CHDBBDBF
    Hope it helps,
    -Eric

  • Strange error when installing iTunes 10.5, please help (need to update to iOS 5)

    I am running Windows Vista Home Basic (32-Bit)
    I have used iTunes for years, while owning various iPods and an iPhone 3g.
    Today I bought an iPhone 4 and came home looking to immediately update to iOS 5, while installing I got this error:
    After searching around, I decided to uninstall all Apple programs and reinstall starting at iTunes 9.
    I also ran Windows update and everything is up to par.
    I still recieve the same error, please help!

    what was the answer to work around this error message..  i am having the same problem trying to unistall quicktime.. 
    thanks

  • Please help me on error -200284 for usb6008 data A/D

    Hi,
    I am working on the A/D using usb6008, I program in visual c++.  I create a dialog to test the function of sample program: contAcquireNChan.c               in  NI-DAQmx Base.  I just changed the mode to DAQmx_Val_FiniteSamps and each time I just want to get several data. I used a button to start the a/d. The following is the code. The problem is very strange that while I click the start button for the sixth time, this error -200284 will occur when calling this function:
     DAQmxErrChk (DAQmxBaseReadAnalogF64taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
    The discription of this error is:
    "Some or all of the samples requested have not yet been acquired.
    To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate."
    I do not know what happened. And how to solve this problem. Please help me.
    The following is the code:
    void CBTTest001Dlg:nStart()
       // Task parameters
        int32       error = 0;
        TaskHandle  taskHandle = 0;
        char        errBuff[2048]={'\0'};
        time_t      startTime;
        bool32      done=0;
        // Channel parameters
        char        chan[] = "Dev1/ai0";
        float64     min = -10.0;
        float64     max = 10.0;
        // Timing parameters
        char        clockSource[] = "OnboardClock";
        uInt64      samplesPerChan = 2;
        float64     sampleRate = 2000.0;
        // Data read parameters
        #define     bufferSize (uInt32)1000
        float64     data[bufferSize * 5];
        int32       pointsToRead = bufferSize;
        int32       pointsRead;
        float64     timeout = 10.0;
        int32       totalRead = 0;
     index++;
     if(index==6)
        int a =0;
     m_bWorkFlag = true; 
      double a1= data[0];
      double a2= data[1];
      double a3= data[2];
      double a4= data[3];
      DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));
      DAQmxErrChk (DAQmxBaseCfgInputBuffer(taskHandle,2000)); //use a 100,000 sample DMA buffer
      DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
      DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,2,&pointsRead,NULL));
     //    printf("\nAcquired %d total samples.\n",totalRead);
      m_fAnalog1 = data[0];
      m_fAnalog2 = data[1];
      m_fAnalog3 = data[2];
      m_fAnalog4 = data[3];
      m_fAnalog5 = data[4];
      UpdateData(false);
      if(taskHandle != 0) {
    //   DAQmxBaseStopTask (taskHandle);
       DAQmxBaseClearTask (taskHandle);
     return;
    Error:
        if( DAQmxFailed(error) )
            DAQmxBaseGetExtendedErrorInfo(errBuff,2048);
        if( DAQmxFailed(error) )
            printf("DAQmxBase Error: %s\n",errBuff);

    Dear Neal,
    Thank you so much !!
    "DAQmx Base was designed for use on operating systems other than Windows". Maybe that's the reason why I always met problems.  I am using windows now !! The only reason for me to use DAQmx Base is that it comes with the USB6008 device so that I think NI recommend to use it ! I also downloaded DAQmx from NI but I did not tried it (in fact it took me several hours to switch the firmware back to DAQmx Base ). I will try It now and tell you the result.
    "You say that you thought you solved the issue but did you not?"
    Yes.
    " Did you add the stop task function before and that is what you thought solved the issue? "
    Yes.
    I started from the example and do some modifications. First I met -200284 error and I found it is the caused by wrong number of data to be read. I changed to finite namber data read.
    Then I met sixth reading problem, at that time I use a button clicking to read the data.when I read for the sixth time, It will occur (I forgot the phenomena). I added a  stop task function and I thoought I solved the problem. I knew for a finite number data reading, stop function is not needed, but I do not have any other method so I tried it. "sixth reading problem" solved, but When I move the data reading function to ontimer function recently. The program will halt -- take 99% of CPU time after 30 second of reading (sometime several minutes, sometimes several seconds). If I move the start task back to OnInitialUpdate() function and cancel stop function, halt error will not occur but the data I read in not correct. That is the whole thing. The following is the code relative to the data read.
    Initialization;
    void Ctest2Dlg:nInitialUpdate()
       DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
      DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_RSE,min,max,DAQmx_Val_Volts,NULL));
      DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_ContSamps ,samplesPerChan));
    Data read
    void Ctest2Dlg:nTimer(UINT nIDEvent)
      if(taskHandle != 0)
         DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
       DAQmxBaseStopTask (taskHandle);

  • Please help with custom error messages

    Hello,
    I am trying to display my own error messages for the <f:validate_required /> validation.
    Here is what I tried:
    -in my faces config xml file, I have:
    <message-resources>
    <message-resources-id>myResourceID</message-resources-id>
    <message>
    <message-id>javax.faces.validator.RequiredValidator.FAILED_MESSSAGE_ID</message-id>
    <summary xml:lang="en">No name was entered</summary>
    </message>
    </message-resources>
    -in the jsp page, I have:
    <h:input_text id="name" valueRef="person.name" >
    <f:validate_required />
    </h:input_text>
    (below:)
    <h:output_errors id="myResourceID" for="name"/>
    It is not displaying my custom error message ("no name was entered") but the default error messages.
    Please help!!
    Juju

    Unfortunately, the current version of the reference implementation does not pick up replacement messages from <message-resources> elements yet. This will be corrected prior to the next release.
    Once that is done, the original proposal will work if one change is made -- all of the standard validators pick up their messages from a standard message resources identifier, so you will need to change to:
    <message-resources-id>
    javax.faces.context.FACES_API_MESSAGES
    </message-resources-id>
    instead of your own message resources identifier.
    Craig

  • @Return - Help with displaying error correctly

    Hi,
    I'm trying to use the @Return function to block users from entering a negative value in the 'FTE' member of the 'F T E' dimension.  When I run the below from Business Rules menu it displays the error correctly in a window.  However when I run when it's attached to a webform which I need, the error displays as:
    Error Detected while attempting to run job:  AAA - Non Discretionary Allocation - Budget.
    ADF_FACES-60097: For more information, please see the servers' error log for an entry beginning with:  ADF_FACES-60096:Server Exception during PPR, #3
    So my question is why does it work perfectly from Business Rules menu but not from the Webforms?
    Fix (  "No FTE" )
             "512100" (
             If(@ISMBR("8900"))
             If("FTE" < 0)
             @RETURN( @CONCATENATE(
                                 @CONCATENATE("Negative values are not allowed as input into the dimension 'F T E' for member:[", @NAME(@CURRMBR("F T E"))),
                                 "]. Please input a value greater or equal to zero to continue.")
             , ERROR);
            ELSE
             @Round("FTE" * "Avg School Principal Salary"->"No Dept"->"Preliminary (Rolled)"->"No Fund"->"No Program",-2);
             Endif Endif )

    Is that your real script? If you are only looking at "No FTE" (assuming it is from "F T E" dimension) why currmbr?
    What is 8900 and 512100 are they accounts? If so why are you opening 512100 and checking for 8900?
    If I were you and trying something like this and hit and error, I would try to put a value and see if that works or not. So if FTE<0 put 1 else put the formula.
    Regards
    Celvin

  • Please help me regarding error in jcManager 1.1

    Hi Friends..
    perhaps this question especially for bebecanu, but perhaps i hope all of you could help me too.. :)
    i tried to learn how way jcManager works, so i downloaded the jcManager1.1 source..
    i created new application in Netbeans 6.9, and then i copied all of files in the jcmanager.source..
    i've set the libraries needed also in Netbeans, i've added the libraries of jpcsc.jar and looks-2.1.4.jar , so assume that there's no error while compile time..
    but while runtime, there's message error displayed in the TextArea..
    this is the message error :
    Exception in thread "Thread-3" java.lang.NoClassDefFoundError: Could not initialize class com.linuxnet.jpcsc.PCSC
         at com.braicu.jcm.card.CardWorker.disconnectCard(CardWorker.java:507)
         at com.braicu.jcm.JCManager$22.construct(JCManager.java:620)
         at com.braicu.jcm.layout.MySwingWorker$2.run(MySwingWorker.java:108)
         at java.lang.Thread.run(Thread.java:619)so, how to initialize class com.linuxnet.jpcsc.PCSC in Netbeans?..
    Please help me regarding this..
    Thanks in advance..

    Hi
    You need to have jpcsc.dll (you may find it in the res folder) in your java library path.
    So, all you need to do is to specify this VM argument on running:
    -Djava.library.path=res
    Hope it helps
    Stefan

  • Please Help!  Bizarre error... read on!

    Simple enough... it would seem.
    I'm a complete flash noob so please have patience.
    Had a template in Flash CS4, nothing fancy.  Modified the text, pictures etc
    I then saved the fla, exported movie (after testing) and all looked ok.
    Opened dreamweaver, (blank page), inserted the swf in centre, then tested, all looked ok again.  Published html with swf
    Uploaded via FTP, then when checking the index.html, it shows up as a very old swf template file I once had on there ages ago.  File appears to not be on server,nor stored locally.
    So, I thought Dreamweaver was linking to something old, so i uploaded the swf index straight through my server admin upload feature - no dreamweaver involved.  Played the swf from file manager, and still old index swf file? WTF?
    I notice that there needs to be apparently an expressinstall file and a modifiedswf object file that needs to be uploaded. Does this cause the problem?
    tried uploading those and still old swf.
    Don't know where this old template swf is coming from?  Can I check it from somewhere?  Please help as it's driving me loopy!
    See attached if any use...
    Phil

    Depending on your selectable browser settings, the cache can be cleared automatically when you close and reopen the browser, or on a daily basis.  Sometimes people set it up to never happen, and they suffer missing new things.  You can usually clear your cache whenever needed via the Internet Options interface in the browser, or whatever your browser has to mimic that.

  • URGENT ! Please Help ! Navigation error....

    Hi,
    I am getting the following error during navigation from summary report to detail report..
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1858, message: ORA-01858: a non-numeric character was found where a numeric was expected at OCI call OCIStmtExecute:
    My summary report has a dummy column name 'All' and I have specified a navigation to another detail report. However it is throwing me this error when trying to navigate. This is happening even when I am not passing any filters to the detail report. Please help me to resolve this issue as I need to get this done right away.

    Couple of things you can check to isolate the prb
    Run the detail report individually w/o navigating from the summary report
    Also make sure if your summary report runs well as such.
    As long as they run indivdually and you not even passing filters ideally it shouldnt cause any issue... Does it generate a SQL?
    Thanks
    Prash

Maybe you are looking for

  • Problem with Storage and iCloud

    Hello! I have a problem, and I've read some other threads here and tried what was suggested, but it's still not working for me. I am using an iPhone 4s. I have purchased 15.0 GB total iCloud storage and I have 10.5 GB available. This is my problem. I

  • Security manager not used with JNDI ?!

    Hi, I have a simple stand-alone java app that does a JNDI lookup and subsequent method invocation on the returned session bean. I never explicitly install a security manager and am wondering why there are no security problems getting the bean proxy a

  • Default Forms

    Hi, Would it be possible while creating a project to default some forms in the Forms tab of project module than adding or importing them from library? In Document setup-> Project Types i dont see any features that would let me default the forms, Woul

  • To start with SAP BI/BW

    Hello! I would like to get familiar with practical part of SAP BI/BW. I went through course materials BW305 and BW310 I also already completed simple example s. bellow http://help.sap.com/saphelp_nw04s/helpdata/en/46/8df2e4ebf268e5e10000000a1553f7/fr

  • New window detection in ADF Faces - what version?

    Hi, In what ADF version was the new window detection feature introduced to ADF Faces? I've been going through the release notes for 11.1.1.x releases but can't find an answer. Also, the documentation for web.xml configuration options doesn't seem to