Help with error codes!!!! Please!!!

import java.util.Scanner; //program uses Scanner
public class Payroll3
     private String name;
     private double rate;
     private double hours;
     //Constructor to store employee information
     public Payroll3(String employeeName, double hourlyRate, double hoursWorked)
          name = employeeName;
          rate = hourlyRate;
          hours = hoursWorked;
     } //Constructor end
     public String payrollToString()
          return name + " " + rate + " " + hours;
    //main method begins main execution of Java application
    public static void main( String args [] )
     boolean stop=false; //controls if loop below is executed
     while (!stop)
     //create Scanner to obtain input from command window
        Scanner input = new Scanner( System.in );
     // prompt for and input employee information
           System.out.printf( "Enter employee name: " ); //prompt
        String employeeName = input. nextLine(); //read employee name from user
     if (employeeName.equals("stop"))
          System.out.println( "Thank you, program has ended.");
          stop = true;
     else
           double hourlyRate, //first number to multiply
          hoursWorked, // second number to multiply
          product; //product of hourlyRate and hoursWorked
      Payroll employee1 = new Payroll (employeeName, hourlyRate, hoursWorked, product);
      System.out.println("Employee Details" + employee1.payrollToString());     
      System.out.printf( "Enter hourly rate: " ); //prompt
      hourlyRate = input.nextDouble(); //read hourly rate from user     
      while (hourlyRate <= 0) //validate for positive number
     System.out.println(); //enters a blank line
     System.out.println("Pay rate must be a positive number.");
     System.out.print("Please enter hourly rate again:");
     hourlyRate = input.nextDouble(); // read hourly rate of employee
     System.out.println();
      System.out.printf( "Enter hours worked: " ); //prompt
      hoursWorked = input.nextDouble(); //read hours worked from user
      while (hoursWorked <=0)
     System.out.println();
     System.out.println("Hours worked must be a postitive number.");
     System.out.print("Please enter hours worked again:");
     hoursWorked=input.nextDouble();
     System.out.println();
      product = (double) hourlyRate * hoursWorked; // multiply numbers
      System.out.println();
      System.out.println("Employee:" + employeeName);// display name
      System.out.println("Number of hours worked;" + hoursWorked); //display hours worked
      System.out.printf( "Product is $%,.2f\n.", product ); // display product
      }     // end else
    } // end while
  } // end method main
} // end class PayrollGetting errors on line 54 and 55 that say cannot find symbol.

michelle2275 wrote:
Ok. but I don't understand how to fix it. I am struggling with this.Well, you either have to call methods and constructors that exist, or you have to create methods and constructors that match what you're calling. Which one is correct depends on the specific situation.
For example:
public int add(int i1, int i2) {
  return i1 + i2;
int x = add(5); // Error -- no method add() taking one intHere, obviously, we need to call something like int x = add(5, 8), because we know we want to add two numbers.
public class Person {
  private String lastName;
  private String firstName;
  public Person(String lastName) {
    this.lastName = lastName;
Person joeSmith = new Person("Smith", "Joe"); // Error -- no (String, String) constructor on Person classHere it would make sense to change the constructor to take a firstName argument and set the firstName member variable.
So look at what you're trying to do and figure out whether the method you're calling is wrong or the way you're calling it is wrong.

Similar Messages

  • Help with error code, please.

    I have compiled a small AS3 script of a bouncing basketball with sound - the volume of the sound  decreasing as the bounces get smaller.
    I have obviously not done something correctly in the way I have installed the sound because I get this error message " 1180: Call to possibly undefined method bounce2 "( bounce2 is the mp3 file). Without the sound the ball bounces perfectly - it is the sound that has killed it. I am a newbie  and am trying to learn AS3 the hard way - by experience  but am stumped here - can some one help, please?   Below is my script.
    // create a ball sprite
    import flash.media.Sound;
    var initialrotationSpeed=12;
    var rotationSpeed : Number;
    var initialxVel : Number=8;
    var stage_width : Number=750;
    ball_mc.x=80;
    ball_mc.y=360;
    //setup position and velocity variables
    var xPos : Number=ball_mc.x;
    var yPos : Number=ball_mc.y;
    var xVel : Number;
    var yVel : Number=0.5;
    var grav ; Number=1;
    var vol : Number=1;
    var snd : Sound=new bounce2();
    snd.play();
    addEventListener(Event.ENTER_FRAME,onLoop,false,0,true);
    function onLoop(evt:Event) : void {
    if(ball_mc.x/stage_width));
    xVel=initialxVel*(1-(ball_mc.x/stage_width));
    yVel+=grav;
    xPos+=xVel;
    yPos+=yVel;
    if(Math.abs(yPos-560)<1&&Math.abs(yVel)<1)
    remove EventListener(Event.ENTER_FRAME,onLoop);
    else if(yPos>560){
    yPos=560;
    yVel*= -.8;
    xVel*= .8;
    vol- =0.1;
    snd.play(0,0,newSoundTransform(vol));
    ball_mc.x=xPos;
    ball_mc.y=yPos;
    if(ball_mc.xstage.stageWidth-ball_mc.width/4||ball_mc.x<0+ball_mc.width/4){
    xVel*= -1;
    addEventListener(Event.ENTER_FRAME,Rotation);
    function Rotation(event:Event):void {
    if(ball_mc.x/stage_width<1)
    ball_mc.rotation+=initialrotationSpeed*(1-ball_mc.x/stage_width);
    if(ball_mc.x<700)
    xVel=initialxVel*(1-(ball_mc.x/stage_width));
    ball_mc.x+=xVel;
    else
    removeEventListener(Event.ENTER_FRAME,Rotation);

    Thank you - that was it - "class" - or lack of .
    I am most appreciative of your assistance
    regards

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

  • Help with error code 0x803C010B

    I have a Toshiba Satellite laptop that I take back and forth to my office.  I have an hp OfficeJet Pro  at the office and an hp Officjet Pro 8500 at home.  I have been able to print at home until today.  I have spent almost the entire day working on a report only to find I can't print it!!!   I checked the printer status and it says "Error".  I click on the trouble shoot up top and it runs to a point then says it cannot continue.  It gives me the error code 0x803C010B.  I opened the hp Support site and then copied and pasted the error code to avoid typos.  The hp "support" site didn't recognize the error code the hp printer trouble shooter gave me (!).  I promise I didn't make up the error code!  So, can anyone help me? 
    I think I've spent approximately 2-1/2 hours chasing down an answer - all for naught!  I think I'm just going to uninstall and reinstall (which I seem to be doing more and more lately with hp products).  But,  If anyone can  give me a c lue, I would certainly appreciate it.  (Just don't add a survey - I've answered 3 surveys tonight, already from hp!!!  I wonder if they really read these things!)     Thanks!

    Hi @TennesseeWoman 
    Thank you for reaching out to the HP Forums, I appreciate your efforts thus far.
    I have searched this error code and found that is is not an HP error, many other printer owners are seeing this error code.
    Look at what others are saying here;
    I have the same issue with my Samsung SL-C410W printer.....
    I can not access my Epson  XP-300 wireless printer......
    And so forth.
    Please try the following steps Arvind Ram posted in the Microsoft Community;
    For all of those who are using network printers, the reason for the issue to occur can be due to SNMP (Simple Network Management Protocol). SNMP manages devices on a network. Some Printers may not support this protocol, because this obtains the printer's status regardless of whether or not they support SNMP, although it only supplies simple status information for those devices.
    I suggest you to disable the SNMP option from the printer properties. To do that please follow the steps below:
    Open Control Panel.
    Select Hardware and Printers option.
    Right click on the Network printer (your printer).
    Choose Properties.
    Go to the Ports tab and choose Configure.
    Uncheck SNMP Status Enable option.
    Restart the computer and check if the issue persists.
    If the issue persists, I suggest opening the link I got this from and looking through to see if you can find any other possible solutions, or maybe posting a new thread in the Microsoft Community.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Do you need help with error code 1004

    The alert message in iTunes may include one of the following numbers (or the message may include a number not listed here):
    1, -1, 2, 4, 6, 9, 13, 14, 20, 21, 23, 26, 28, 29, 34, 35, 36, 37, 40, -48, -50, 1000, 1002, 1004, 1011, 1013, 1014, 1015, 1479, 1600, 1601, 1602, 1603, 1604, 1611, 1631, 1638, 1639, 2001, 2002, 2005, 2006, 2009, 3002, 3004, 3013, 3014, 3015, 3194, 3200, 9006, 9807, -9808, 9844, 4026xxxxx.
    Click the link for the error code you have. If it's not listed here, check the error messages below, and then if necessary follow the advanced steps below to resolve the issue.
    Resolution
    Specific error messages and resolutions
    Collapse All | Expand All
      Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
    Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
      Error 3014
    This error occurs when iTunes is unable to reach gs.apple.com in a timely fashion. Follow the steps below in Unable to contact the iOS software update server gs.apple.com.
      Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.
      Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
    These errors typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.
    Also, check your hosts file to verify that it's not blocking iTunes from communicating with the update server. See iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you have software used to perform unauthorized modifications to the iOS device, uninstall this software prior to editing the hosts file to prevent that software from automatically modifying the hosts file again on restart.
      Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue: 
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
      If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
      Error 1600, 1601, 1602
    Follow the steps listed above for Error 1604. This error may also be resolved by disabling, deactivating, or uninstalling third-party security, antivirus, and firewall software. See steps in this article for details on troubleshooting security software.
      Error 1603
    Follow the steps listed above for Error 1604. Also, discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations. If you do not want to remove the IPSW in the original user, try restoring in a new administrator user. If the issue remains, Eliminate third-party security software conflicts.
      Error 1611
    This error typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.
      Error 13, 14, 35 and 50 (or -50)These errors are typically resolved by performing one or more of the steps listed below: 
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
    Put a USB 2.0 hub between the device and the computer.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
    Try to restore from another known-good computer and network.
      Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on)
    If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software. If the errors persist on another computer and known-good USB cable, the device may need service.
    Restore loop (being prompted to restore again after a restore successfully completes)
    Troubleshoot your USB connection. If the issue persists, out-of-date or incorrectly configured third-party security software may be causing this issue. Please follow Troubleshooting security software issues. .
    There was a problem downloading the software for the iPhone (or another iOS device)
    See the steps below for error codes 3000-3999.
    iTunes cannot connect to the iPhone because an invalid response received from the device
    This error occurs when there are problems communicating through USB. This may be resolved by following the steps for errors 13 or 14 above.
    Unknown Error containing "0xE" when restoring
    To resolve this issue, follow the steps in iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting. If you have a Windows computer with an Intel® 5 series/3400 series chipset, you may need updates for your chipset drivers. See iTunes for Windows: Issues syncing iOS devices with P55 and related Intel Chipsets for more information.
    Hang during restore process

    See the following:
    Error 150:30 - Error "Licensing has stopped working" | Mac OS :
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

  • I need help with error code 32812:

    Hi. I am trying to read in some voltages using FP-AI-112. A while ago, I developed a Labview program to do that, and it worked fine. Now, I'm going back and using it again, and I keep getting the error code 32812: "the specified tag name is not found." I have checked and rechecked my tag name in Fieldpoint Explorer over and over again, and I swear that the tag name in my program is identical to the one in Fieldpoint Explorer. Please help. Thanks.

    Which version of FP Explorer are you using? Did check the configuration of the IAK file itself?
    You can read the following to get more information:
    http://digital.ni.com/public.nsf/websearch/02EB73D​02715981A8625682B00774F8F?OpenDocument
    Hope that this helps. Good luck!
    Chin Pei

  • Need help with error code 150:30

    need help with finding out what error code 150:30 is and how to fix it

    See the following:
    Error 150:30 - Error "Licensing has stopped working" | Mac OS :
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

  • Multiple Users Login ( Help With The Code ) Please.

    Hi all. Please help me...
    I'm using www.wix.com to create my websites.
    but since Wix.com don't able us to have member system conecet to database, i use Flash SWF As3 files...
    Please can anyone help me with the Code?
    Username=1    /Password= 1    /Url= www.1.com
    Username=2    /Password= 2    /Url= www.2.com
    Username=2    /Password= 2    /Url= www.2.com
    *If user name 1 or 2 or 3 correct. Show massage ex: Welcome back, if not correct " Bad login"
    *When login, it will open the url but in new page after the old one closed.
    + There is anyway to add " Password recovaring box too"?
    but not connected to datdabase as i said?
    Please help me, please! i areadly have code but it don't work for more than one user.
    Thank u soooo much!!
    Loai

    Here's the code i have already,,
    but i don't know how to add more than one user + when login it open new window ( popup ) i want it to open in the same window...
    Please help.
    stop();
    //hide the password
    //pass_txt.displayAsPassword = true;
    //adding event listener to the login button
    login_mc.addEventListener(MouseEvent.CLICK, loginUser);
    function loginUser(e:MouseEvent):void{
    //if both username and password are correct let the user logged in
    if(name_txt.text == "1" && pass_txt.text == "1"){
    navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-1" ), "_blank" );
    display_txt.text = "Going to secure area";
    else if(name_txt.text != "1" && pass_txt.text != "1"){
    display_txt.text = "Login failed!";
    if(name_txt.text == "2" && pass_txt.text == "2"){
    navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-2" ), "_blank" );
    display_txt.text = "Going to secure area";
    else if(name_txt.text != "2" && pass_txt.text != "2"){
    display_txt.text = "Login failed!";

  • Help with button code please?

    I am a novice and have just completed my first animated movie. I need help with action script.
    The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped.
    I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
    Two questions;
    1. am I going about the task the right way? (should I use two buttons, one stop, one start)?
    2. if my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

    you can use the following after changing "yourbutton" and "yourmovieclip" to use suitable instance names:
    yourbutton.onRelease=function(){
    if(!this.toggle){
    yourmovieclip.stop();
    } else {
    yourmovieclip.play();
    this.toggle=!this.toggle;

  • Help with Error Code: 5 in CS 5.5 Win 7

    I got an "Out of Memory" message while editing a file and had to use Windows Task Manager to close InDesign. When I restarted InDesign and attempted to open the file I got  the message: Cannot open "[filename]". The file "[filename]" is damaged and cannot be recovered (Error code: 5).
    I have no backup of the file.
    I then tried to open an earlier version of the file and got the same error message. It seems to be corrupting every file I try to open. HELP!!!

    You need to empty the InDesign Recovery folder. It's hidden so you need to set Explorer to show hidden files, then navigate to Users\<your user name>\AppData\Local\Adobe\InDesign\Version 7.5\<language>\Caches
    That should allow ID to restart normally and let you open the last saved version of your file.

  • Can anyone help with error code 21

    I have an iPhone 4s, when I went to update the software I got stuck on the iTune screen, and giving me error code 21.
    I downloaded the lastest iTune, my computer softwares are up to date.
    Everytime I try to restore my phone, will come back with code 21
    Thanks...

    From this support document http://support.apple.com/kb/TS3694 error 21.
    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, and 40
    These errors typically occur when security software interferes with the restore and update process. Use the steps to troubleshoot security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.

  • Need help with error code

    hello i am getting error code 400 at login can someone help me please

    Yes, because it's gone, as I said in my first post. Any photos you had there moved to Revel. Just sign out in PSE and ignore that from now on.
    There's more info about Revel here:
    http://forums.adobe.com/community/ps.com_sharing_and_storage
    PSE 10 knows nothing about revel. Your photos are there but you can't get to it directly from PSE. You will need to use a web browser instead.

  • Need help with Error code (-1202) in itunes store

    ITunes Store keeps giving me error code 1202  when I try to click links. I'm using itunes 11 also itunes music page shows blank white screen. And the iTunes Match section doesn't show any pictures and looks like a website when it's on HTML format.  The radio stream works and itunes is able to display the music I had stored on iCloud so I'm not sure if its connection issue or what. Does anyone have a fix for this?

    See the following:
    Error 150:30 - Error "Licensing has stopped working" | Mac OS :
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

  • Need help with error code 1714!!!!!!!!!!! Please help

    Need help trying to upgrade itunes for windows, i get to a certain point and the following error comes up "ERROR 1714: THE OLD VERSION OF ITUNES CANNOT BE REMOVED CONTACT YOUR TECHNICAL SUPPORT GROUP" i click ok and then another error comes up "ERROR 1603 FATAL ERROR" can anybody help Please!!!!!!!!!!!!!!!!!!!!

    hi wags!
    hmmmm. okay, let's try using the complete uninstallation instructions from the following document to remove your existing itunes and QT:
    Trouble installing iPod, iTunes, or QuickTime software in Windows
    if you do that first, will the new itunes install go through properly?
    if you get an error message on the uninstalls, let us know what it says. include error message numbers if you're getting any.
    love, b

  • Need help with Error Code 205 and installation

    not installed on my computer the premier adorbe cs6 , code 205 appears
    Message was edited by: Kevin Monahan
    Reason: please enter a better title next time

    Hi Gyrus,
    See if this doc helps you: https://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html
    Thanks,
    Kevin

Maybe you are looking for