Help (again) with the payroll problems

I have seen some posts about the payroll program that we students are trying to figure out. I am having some of the same problems which I have been able to sort through, but I am having a problem that I can't make go away!
My error is this:
cannot find symbol
symbol: variable input
Here is the work-in-progress code:
public class PayrollProgram {
/** Creates a new instance of PayrollProgram */
public PayrollProgram() {
//main method begins execution of Payroll Program java application
public static void main(String[]args)
double number1; // rate
double number2; // hours
double product; // total pay
System.out.println("Please enter your name:");//prompt
String nameOfEmployee=input.nextLine();
System.out.print("Enter rate:$");//prompt
number1 = input.nextDouble(); // read first number
System.out.print( "Enter hours: " ); // prompt
number2 = input.nextDouble(); // read second number
product = number1 * number2; // multiply numbers
System.out.printf("%s makes $%.2f%n",nameOfEmployee,product);
} //end method main
} //end class PayrollProgram
I am stuck and don't know where the opening of the paper bag is!
Thanks!

String nameOfEmployee=input.nextLine();Do you have a variable called input that you have declared somewhere? I can't find it and neither can the compiler, hence the error.

Similar Messages

  • HI ,We would like to ask you to help us with the following problem

    We would like to ask you to help us with the following problem. As usual we tried to post unmatched received advance payment which is subject to output VAT via transaction SM35. Normally we post the payment to account 501020 (Advances Received from Operating Activities), we generate output VAT by clicking on u201CSimulate Taxu201D. Then we simulate the document and four lines are automatically generated (please see the attached scan of such document posted recently):
    40           510000 (Trade Receivables - Receive from Bank)
    19           501020 (Advances Received from Operating Activities)
    50           400000 (Output Tax (Sales Tax Payable))
    40           405033 (Customer Advances VAT)
    However when we tried to post it today it is not possible and an error message u201CTax clearing account 405033 may not have open item managementu201D appears u2013 please see the scanned printscreen. This did not happen in the past.
    We would appreciate if you could solve it as soon as possible as we still need to post it to period 12.

    Hello
    You execute the t/code FS00 for G/l 405033 and go the control tab select tick in open item mgt under act mgt in co.code.
    Regards
    Avijit

  • Plz help me with the font problem T_T

    Could you help me with this problem ?
    Here's my code :
    Font font = new Font("Arial", Font.BOLD, 12);
    Map fontAttributes = new HashMap();
    fontAttributes.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_ULTRABOLD);
    font = font.deriveFont(fontAttributes);I use this font in the graphics.drawString() method, but it seems like the text is drawn with PLAIN style, no effect of bold at all.
    If i change the WEIGHT_ULTRABOLD to WEIGHT_BOLD, it works, the text is drawn with BOLD style.
    I wonder what is wrong ? I really want the BOLD to be 'bolder', thicker ^.^
    Or is there any other approaches to this ?
    Helppp meeeee plzzzz

    I see the same thing.
    The API for TextAttribute describes WEIGHT_ULTRAWEIGHT as
    specifying "The heaviest predefined weight", but as you point out
    you get plain rather than bold.
    This bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4920831)
    describes the problem:
    "Fonts can be created using TextAttributes in a Map. Unlike the standard
    Font constructor, which just uses a boolean 'bold' bit in the style mask,
    the Map can provide a range of values for WEIGHT. In JDK 1.4.2 and 1.5,
    only the weight coresponding to WEIGHT_BOLD creates a bold font-- the
    rest are plain. At a minimum, all values for TextAttribute.WEIGHT that are
    greater than the value for WEIGHT_BOLD should also create a bold font.
    "Furthermore, different weights should (to a point) result in fonts that
    appear to be of different weights, even if there are no corresponding
    underlying fonts. Fonts of increasing weight should display with a
    corresponding increase in boldness.
    "Changes in weight should not necessarily cause a change in advance.
    Synthesized weight changes should impact advance minimally, if at all."
    The evaluation claims that "WEIGHT >= WEIGHT_BOLD will cause a
    Bold font", but I don't see it (compiled and ran basically your code
    with 1.5.0_04).

  • Please help me with the debugger problem

    I got some error information from ST22 shows below.
    Information on where terminated 
    Termination occurred in the ABAP program "CL_GUI_FRONTEND_SERVICES======CP" - 
    in "CONSTRUCTOR". 
    The main program was "SAPMSSY1 ". 
    In the source code you have the termination point in line 28 
    of the (Include) program "CL_GUI_FRONTEND_SERVICES======CM002". 
    I want to locate the codes where the error happens, so I think I can set a breakpoint at source codes as below, but the SAP system gives me the error: the breakpoints could not be created due to incorrect entry.
    program: SAPMSSY1
    include: CL_GUI_FRONTEND_SERVICES======CM002
    row: 28
    Could you please give me some ideas how to set the breakpoint? Thanks a lot.
    Best,
    Bing

    Hi
    Execute the program in the Debuggin mode.
    In the Debugger Window
    Select Breakpoint -> Break point at -> Breakpoint at source code Menu Item and enter the details of the program/include/line no..
    Activate the System Debugger On from the Settings Menu.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 18, 2008 7:20 AM

  • Please help me with the debug problem

    Hi all,
    I meet an error when I am trying to modify a ABAP program got from my previous coworker. From the dump, I can know which program (say programERROR) the error occurs in, but I don't know which program calls this programERROR. Since there are so many programs call other ones, I cannot manually look up the codes and find the caller.
    Does anyone have some ideas about how to find the calling order, like  programStart calls programA, and then programA calls programERROR?
    Thank you very much,
    Bing

    May be try to use program RS_ABAP_SOURCE_SCAN to scan

  • Please help me with the forward problem

    Hi,
    I have a jsp page which has a submit button. When the submit button is invoked control transfers to a servlet. I do some processing in the post method of servlet and then control gets transfer back to the same jsp page. Following is the code of post method of servlet:
    protected void doPost(HttpServletRequest aRequest, HttpServletResponse aResponse)
    throws ServletException, IOException {
    processRequest(aRequest, aResponse);
    aRequest.setAttribute("result", "every thing is ok");
    RequestDispatcher aDispatcher = aRequest.getRequestDispatcher("growth/promotion.jsp");
    aDispatcher.forward(aRequest, aResponse);
    First when I start the application my url is: http://localhost:8084/salesgroup/growth/promotion.jsp
    After code returns from servlet I was expecting to see the same url instead the url I see is the following:
    http://localhost:8084/salesgroup/Controller
    Controller is the servlet class. What I am doing worng. Because of this my page does not get render the way it suppose to be. Lot of things are missing from the page.
    Any idea why this is happening?
    Thank you in advance.

    the code should work.
    try using sendRedirect as a temporary solution.
    Have you done any Exception handling in the code?
    Make sure that there is no exception in the controller servlet.
    Lastly, also make sure that your code reaches the forward method by putting some debug statements.
    Rohan

  • HT1349 The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only t

    The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only time it works correct. Bill. [email protected]  708 752  3667 

    http://lifehacker.com/5852948/what-to-do-if-youve-forgotten-your-iphones-passcod e

  • Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    I'm assuming you have Photo Stream set up of both devices.  However, it seems many users are experiencing the same as you - my take is that streaming photos is not foolproof yet.

  • Please help me with the digital signature validation problem?

    Please help me with the digital signature validation problem?

    Hi
    Execute the program in the Debuggin mode.
    In the Debugger Window
    Select Breakpoint -> Break point at -> Breakpoint at source code Menu Item and enter the details of the program/include/line no..
    Activate the System Debugger On from the Settings Menu.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 18, 2008 7:20 AM

  • HT1338 Could you please help me with the problem. I have mac os 10.7.4 on my macbook pro retina and want to update it to 10.7.5. I had been waiting for 2 hours to do it, but then it appeared that it was impossible. What should I do?

    Could you please help me with the problem. I have macbook with retina with mac os 10.7.4 ann want to update it to mac os 10.7.5. I had been waiting for 2 hours to do it and had tried 3 times but it appeared that it was impossible. What should I do?

    You can download the standalone updates:
    OS X Lion Update 10.7.5 (Client Combo)
    OS X Lion 10.7.5 Supplemental Update

  • HT201210 Hey,I've got a problem on my iPad mini for a few days now?My iPad is in recovery mode at the moment and I Cannot restore my Ipad with iTunes...Can anyone help me with the solution?Each of your helps will be appreciate

    Hey,I've got a problem on my iPad mini for a few days now?My iPad is in recovery mode at the moment and I Cannot restore my Ipad with iTunes...Can anyone help me with the solution?Each of your helps will be appreciate...Thanks for all the helps...

    Follow step 1 to 6 closely to recover your iPad.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times

  • On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?

    On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?  I tried everything 'app support' tells me except deleting and reinstalling the App because I have a lot of files that I'd lose.  Recommendations anyone?  [email protected]

    On iOS 8.3 using 'Keynote for iPad' the app freezes repeatedly (since the last update of April 21st) while editing slides. 30 sec. later comes alive again, then freezes again after a few editing actions. Anyone with the same problem?  I tried everything 'app support' tells me except deleting and reinstalling the App because I have a lot of files that I'd lose.  Recommendations anyone?  [email protected]

  • Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help Apple support team!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B...)

    Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help !!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B..., and both radio bands)

    Trouble to connect to wireless G routers after installed the latest update 10.10.2  . Anyone with the same problem? Please help !!! Macbook Pro mid 2010. PS.: Only with wireless G routers, the rest are fine (N, B..., and both radio bands)

  • What is the best way to remotely access my sister in laws Mac who lives in another city to help her with her computer problems?

    as stated above
    What is the best way to remotely access my sister in laws Mac who lives in another city to help her with her computer problems?

    The best way? Get her to bring it to you, especially if she makes good cakes.
    Apples Back to my Mac isn't really suitable for this - it is designed for a single person who wants their Apple ID on the system. It would mean she would have to share hers with you & you would also have to setup her Apple ID on your Mac - it is messy & causes trouble with iCloud, iTunes etc.
    You can try Messages if she is able to begin a session with you, see the 'invite to share screen' in the menus, weirdly you need to use a service that isn't from Apple.
    Messages (Mavericks): Share your screen
    It may be better if you to setup LogMeIn or GoToMyPC. They should 'dial out' & maintain a constant connection so you can login whenever the Mac is powered up. It won't, require a human to initiate the process at the other end, just be aware that the router may cause issues depending on what is configured, you may need settings to enable automatic port forwarding - it really depend on which option you choose.

  • Can anyone help me with an iWeb problem? I cannot save the site after making changes. I receive this error: "website.sites2 could not be saved"

    Can anyone help me with an iWeb problem? I cannot save the site after making changes. I receive this error: "website.sites2 could not be saved"

    You could try duplicating the Domain.sites2 file and launch this in iWeb. Delete the last page you edited and try saving. If that doesn't work, undo and try deleting another and so on...
    If you can find the problem page you would only have to rebuild it rather than the whole site.
    The other possibility is to create a new site on the same domain file and drag each page in turn down to it from the top site and try to save each time.

Maybe you are looking for