HR- Attendance Problem related to payroll program

Hello Experts,
                    I have created the zreport from attendance in HR-payroll ( Tcode: PT91_ATT ). Actually I have copy the whole satandard report code (with Tcode: PT91_ATT ) to my zreport for the customized requirement. Report is executing fine  with dispalying the employee code(PERNR), name of employee (BNAME), and the date wise display like 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31.
My requirement is to add the three fields more in the same printing logic i.e. Total no of Present(P), Total no of Leaves(L), Total no of Absents(A) with in the same report. I have done some changes but they are not executing. Can you please suggest how it can be done. If possible do suggest with code of program please.
Regards,
Akg

Hi
Unfortunately, I don't believe in spoon feeding and hence not be posting the source code here.
I believe I have given enough information as to what can be used to get the report developed.
Further to this, let me explain you the logic to be followed in detail -
Steps to be followed -
1. Use Logical DB PNP & node PERNR of it.
2. Loop through all the personnel numbers between GET PERNR... END-OF-SELECTION
3. Query time data for each employee using the function module HR_FORMS_TIM_GET_B2_RESULTS. First, loop through the internal table FT_PSP to get the "SHIFT" and "Weekly off" here and fill the day slots.
4. Now that you have got the weekly off's of the employee check for other possible entries such as PRESENCE, ABSENCE(CL,SL,PL et al.) which can be found in the internal table FT_TP of B2 cluster.
5.Finally, when you have data for entire month count the related PRESENCE & ABSENCE and any other things that you would like to have in your output.
Let me know, if you need anything else. Perhaps, not the source code.
Regards,
Rupesh Mhatre
Edited by: rumhat on Mar 24, 2011 2:32 PM
Edited by: rumhat on Mar 24, 2011 2:33 PM

Similar Messages

  • Problem related to C program

    I have a char pointer and we have to define its size as 10 and a String inserted in it ("SANJAY");
    How i can solve this problem in C using dynamic memory allocation

    I have a char pointer and we have to define its size as 10 and a String inserted in it ("SANJAY");Is that a JNI question? Can you be more accurate about your requirements?
    How i can solve this problem in C using dynamic memory allocationIs that a homework question? Can you be more open about whether this is the case, and what yourself already analyzed and suggest (we'll gladly comment on your attempt to help you improve it if needed).

  • I need to install version 22 - nothing higher until 27 is available as my payroll program will not run. How do I install version 22 and not the most recent ver

    I need to install version 22. This is under the guidance of my payroll provider. The program will not work until version 27 comes out. I do not need help solving the problem with the payroll program, I just want to install version 22 of Firefox.

    Firefox 27.0 is in Beta at moment until February 4 release.
    You would be better off trying to use wither the User Agent Switcher extension or ua-site-switch extension to try a fool this one site or to use the portable Firefox 22.0 just for this one site.
    https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
    https://addons.mozilla.org/en-US/firefox/addon/ua-site-switch/
    You should not switch to using 22.0 only due to known potential vulnerabilities that is fixed in newer versions like the current Fx 26.0.
    The Portable Firefox is a self contained program as it will not interfere with your current Firefox 26.0 install. It can even be used completely on a usb flash drive. http://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox%2C%20Portable%20Ed./Mozilla%20Firefox%2C%20Portable%20Edition%2022.0/ and pick your language.
    I posted a ink to portable Firefox 22.0 as their homepage currently only links to the current 26.0 and 24.2.0esr on http://portableapps.com/apps/internet/firefox_portable

  • Employee payroll program problems

    I have done good so far but now im stuck and lost on how to take my program to the next step, kids got sick and i missed like a week of school so im behind. I am suppose to modify the Payroll Program so that it uses a class to store and retrieve the employee?s name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as the employee name, the application should terminate. I am lost on the bold part..
    here is what I have:
    //Calculates weekly pay for an employee
    import java.util.Scanner; // program uses class Scanner
         public class BeemansPayroll
         private double rate;
         private double hours;
         private String name;
         //Used to save info
    public BeemansPayroll(String Name, double PayRate, double Hours)
         String name = Name;
         double rate = PayRate;
         double hours = Hours;
    private static void Quit()
    System.out.println("Thank You for using Beeman's Payroll");
    System.exit(0);
    // main method begins execution of Java application
    public static void main(String args[])
    // create Scanner to obtain input from command window
    Scanner input = new Scanner(System.in);
    String name = "";
    do {
    System.out.print("Enter Employee Name or stop to quit: ");
    // prompt for name
    name = input.next(); // get name
              if (name.equals("stop"))
    System.out.println("Thank You for using Beeman's Payroll");
    Quit();
    } //end if
    else
    double PayRate;
    double Hours;
    double Pay;
         System.out.print("Please enter Employee payrate:$ "); // prompt
         PayRate = input.nextDouble(); // read first number from user
              while (PayRate <= 0)
                        System.out.println ("Invalid amount, Payrate must be positive");
                        System.out.print("Please enter valid payrate:$ ");
                        PayRate = input.nextDouble();
                   } //end if      
    System.out.print("Please enter Employee hours: "); // prompt
    Hours = input.nextDouble(); // read second number from user
                             while (Hours <= 0)
                        System.out.println ("Invalid amount, Hours must be positive");
                        System.out.print("Please enter hours worked: ");
                        Hours = input.nextDouble();
                   } //end if
    Pay = PayRate * Hours; // multiply numbers
    System.out.printf("Employee Pay for the week %s, is $%.2f\n", name,
    (PayRate * Hours)); // display product
    } //end else
    }while (!name.equals("stop"));
    Quit();
    } // end method main
    } // end class Beeman's Payroll

    john774077 wrote:
    Like I said, I am lost, with all that is going on I have done the reading 4 times , Then try reading a different source such as the Sun Java tutorials. They are excellent and there is no substitute to your reading and learning. We can help you debug an error in your code, but we are not a tutorial service nor a homework production service. Note also that we are all volunteers.
    on top of kids getting sick and taking three algebra all at once. I advice you to not go on and on about this. This is not our problem and won't affect how or if someone helps you. If anything continued mention of this will turn many away who would otherwise help you.
    How or where do I go about breaking it down?You are redeclaring the variables in your constructor, i.e.,:
    String name = Name;  // don't do thisDon't do this because you'll never change the class's name variable this way. Instead in the constructor do something like this for each variable:
    name = Name;or
    this.name = Name;Later you will need to read up on Java naming conventions.
    As for creating the method, you should read up on method creation in your text book or tutorial. That'll give you a better explanation than we can, I think.

  • IDOC  type related to Payroll and Employees Attendance and Absence

    Hi  Evrybody,
    Right now im working on ALE INBOUND Interface, which relates to transfer of data.
    I'm searching for an Basic IDOC  type related to Payroll and Employees Attendance and Absence,
    If any pointers would be much helpful.
    Thanks n Regards.
    [email protected]

    Solved myself.

  • Problem Related To HOT Spot in ABAP Programming?

    Hi All,
    I developed a program of purchase register now i want that on clicking the PO it will take the user to the conserned PO for that i used HOt Spot but still it is not taking me to the conserned PO. Plz tell me what do i do to fullfill my purpose.

    hi, Abhinav
    i think that the following Code will help you in this way.
    REPORT  zfsl_hot_cust_docn.
    TABLES: zsd_credit_bal, tvm4t, t023t, kna1.
    TYPES : BEGIN OF t_sd_credit_bal,                 " To define Internal Table for holding following Data
              benid LIKE zsd_credit_bal-benid,        " Customer ID
              botcp LIKE zsd_credit_bal-botcp,        " Pack
              audat LIKE zsd_credit_bal-audat,        " Date
              vehno LIKE zsd_credit_bal-vehno,        " Vehicle Number
              vbeln LIKE zsd_credit_bal-vbeln,        " Document Number
              movmt LIKE zsd_credit_bal-movmt,        " Movement type
              quantity LIKE zsd_credit_bal-quantity,  " Quantity
            END OF t_sd_credit_bal.
    SELECT-OPTIONS:  soaudat FOR zsd_credit_bal-audat NO-EXTENSION OBLIGATORY DEFAULT '20071121'.
    DATA :  sd_credit_bal1 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE,
            sd_credit_bal2 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE.
    START-OF-SELECTION.
      DATA: vbenid(10), vbotcp(3), lineno TYPE i   ."LIKE LINE OF sd_credit_bal1.
      PERFORM main.
    *&      Form  MAIN
    *       text
    FORM main.
      SELECT benid botcp audat vehno vbeln movmt quantity INTO CORRESPONDING FIELDS OF TABLE sd_credit_bal1
        FROM  zsd_credit_bal
        WHERE audat IN soaudat.
      WRITE: 'Main Menu'.
      WRITE: / 'Select Entry to see its details.'.
      LOOP AT sd_credit_bal1.
        WRITE: /1 sd_credit_bal1-benid HOTSPOT ON, sd_credit_bal1-botcp HOTSPOT ON.
        vbenid = sd_credit_bal1-benid.  vbotcp = sd_credit_bal1-botcp.
        HIDE: vbenid, vbotcp.
      ENDLOOP.
    ENDFORM.                    "main
    AT LINE-SELECTION.
      WINDOW STARTING AT 25 3 ENDING AT 103 25.
      WRITE: 1(78) sy-uline,
             /1 '|',
             3(10) 'Date' CENTERED,
             14(1)'|',
             16(35) 'Vehicle Number' CENTERED,
             52(1)'|',
             54(10) 'Pack' CENTERED,
             65(1) '|',
             67(10) 'Movm Type',
             78(1) '|',
             /1 '|',
             1(78) sy-uline.
      LOOP AT sd_credit_bal1 WHERE benid = vbenid AND botcp = vbotcp.
        WRITE: /1'|',
               3(10) sd_credit_bal1-audat,
               14(1) '|',
               16(35) sd_credit_bal1-benid,
               52(1) '|',
               54(10) sd_credit_bal1-botcp,
               65(1) '|',
               67(10) sd_credit_bal1-movmt,
               78(1) '|',
               /1'|',
               1(78) sy-uline.
      ENDLOOP.
    Replay if any Problem related to this Code.
    Kind Regards,
    Faisal

  • ITunes keeps shutting down when I open it up.  The message says iTunes has stopped working.  A problem has caused the program to stop working correctly.  Windows will close the program and notify you if a solutions is found.

    iTunes keeps shutting down when I open it up.  The message says iTunes has stopped working.  A problem has caused the program to stop working correctly.  Windows will close the program and notify you if a solutions is found.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried something like the above then try opening iTunes in safe mode (press and hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud Purchases. You may find that iTunes opens normally now.
    tt2

  • Help with Payroll program

    Hello I need help with the following code for a Payroll program.
    //CheckPoint: Payroll Program Part 3
    //Java Programming IT215
    //Arianne Gallegos
    //05/02/2007
    //Payroll3.java
    //Payroll program that calculates the weekly pay for an employee.
    import java.util.Scanner; // program uses class Scanner
    public class Payroll3
         private string name;
         private double rate;
         private double hours;
         // Constructor to store Employee Data
         public EmployeeData( String nameOfEmployee, double hourlyRate, double hoursWorked )
              name = nameOfEmployee;
              rate = hourlyRate;
              hours = hoursWorked;
         } // end constructor
    } //end class EmployeeData
       // main method begins execution of java application
       public static void main( String args[] )
          System.out.println( "Welcome to the Payroll Program! " );
          boolean quit = false; // This flag will control whether we exit the loop below
          // Loop until user types "quit" as the employee name:
          while (!quit)
           // create scanner to obtain input from command window
            Scanner input = new Scanner ( System.in );
            System.out.println();  // outputs a blank line
            System.out.print( "Please enter the employee name or quit to terminate program: " );
            // prompt for and input employee name
            String nameOfEmployee = input.nextLine(); // read what user has inputted
            if ( nameOfEmployee.equals("quit")) // Check whether user indicated to quit program
              System.out.println( "Program has ended" );
              quit = true;
    else
              // User did not indicate to stop, so continue reading info for this iteration:
              float hourlyRate; // first number to multiply
              float hoursWorked; // second number to multiply
              float product; // product of hourlyRate and hoursWorked
              System.out.print( "Enter hourly rate: " ); // prompt
              hourlyRate = input.nextFloat(); // read first number from user
              while (hourlyRate <= 0) // prompt until a positive value is entered
                 System.out.print( "Hourly rate must be a positive value. " +
                   "Please enter the hourly rate again: " ); // prompt for positive value for hourly rate
                  hourlyRate = input.nextFloat(); // read first number again
              System.out.print( "Enter hours worked: " ); // prompt
              hoursWorked = input.nextFloat(); // read second number from user
              while (hoursWorked <= 0) // prompt until a positive value is entered
                 System.out.print( "Hours worked must be a positive value. " +
                   "Please enter the hours worked again: " ); // prompt for positive value for hours worked
                  hoursWorked = input.nextFloat(); // read second number again
              product = (float) hourlyRate * hoursWorked; // multiply the hourly rate by the hours worked
              // Display output for this iteration
              System.out.println(); // outputs a blank line
              System.out.print( nameOfEmployee ); // display employee name
              System.out.printf( "'s weekly pay is: $%,.2f\n", product);  // display product
              System.out.println(); // outputs a blank line
          // Display ending message:
          System.out.println( "Thank you for using the Payroll program!" );
          System.out.println(); // outputs a blank line
       } // end method main
    } // end class Payroll3I am getting the following errors:
    Payroll3.java:18: invalid method declaration; return type required
    public EmployeeData( String nameOfEmployee, double hourlyRate, double hours
    Worked )
    ^
    Payroll3.java:28: class, interface, or enum expected
    public static void main( String args[] )
    ^
    Payroll3.java:33: class, interface, or enum expected
    boolean quit = false; // This flag will control whether we exit the loop b
    elow
    ^
    Payroll3.java:36: class, interface, or enum expected
    while (!quit)
    ^
    Payroll3.java:42: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:43: class, interface, or enum expected
    System.out.print( "Please enter the employee name or quit to terminate p
    rogram: " );
    ^
    Payroll3.java:45: class, interface, or enum expected
    String nameOfEmployee = input.nextLine(); // read what user has inputted
    ^
    Payroll3.java:48: class, interface, or enum expected
    if ( nameOfEmployee.equals("quit")) // Check whether user indicated to q
    uit program
    ^
    Payroll3.java:51: class, interface, or enum expected
    quit = true;
    ^
    Payroll3.java:52: class, interface, or enum expected
    ^
    Payroll3.java:57: class, interface, or enum expected
    float hoursWorked; // second number to multiply
    ^
    Payroll3.java:58: class, interface, or enum expected
    float product; // product of hourlyRate and hoursWorked
    ^
    Payroll3.java:60: class, interface, or enum expected
    System.out.print( "Enter hourly rate: " ); // prompt
    ^
    Payroll3.java:61: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number from user
    ^
    Payroll3.java:64: class, interface, or enum expected
    while (hourlyRate <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:68: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number again
    ^
    Payroll3.java:69: class, interface, or enum expected
    ^
    Payroll3.java:72: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number from user
    ^
    Payroll3.java:75: class, interface, or enum expected
    while (hoursWorked <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:79: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number again
    ^
    Payroll3.java:80: class, interface, or enum expected
    ^
    Payroll3.java:86: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:87: class, interface, or enum expected
    System.out.print( nameOfEmployee ); // display employee name
    ^
    Payroll3.java:88: class, interface, or enum expected
    System.out.printf( "'s weekly pay is: $%,.2f\n", product); // display
    product
    ^
    Payroll3.java:89: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:91: class, interface, or enum expected
    ^
    Payroll3.java:96: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:98: class, interface, or enum expected
    } // end method main
    ^
    The problem I am having is getting the constructor to work with the rest of the program can someone please point out to me how to correct this. I have read my textbook as well as tutorials but I just don't seem to get it right. Please help.
    P.S. I have never taken a programming class before so please be kind.

    Ok, I changed the name of the constructor:
    //CheckPoint: Payroll Program Part 3
    //Java Programming IT215
    //Arianne Gallegos
    //04/23/2007
    //Payroll3.java
    //Payroll program that calculates the weekly pay for an employee.
    import java.util.Scanner; // program uses class Scanner
    public class Payroll3
         private string name;
         private float rate;
         private float hours;
         // Constructor to store Employee Data
         public void Payroll3( string nameOfEmployee, float hourlyRate, float hoursWorked )
              name = nameOfEmployee;
              rate = hourlyRate;
              hours = hoursWorked;
         } // end constructor
    } //end class EmployeeData
       // main method begins execution of java application
       public static void main( String args[] )
          System.out.println( "Welcome to the Payroll Program! " );
          boolean quit = false; // This flag will control whether we exit the loop below
          // Loop until user types "quit" as the employee name:
          while (!quit)
           // create scanner to obtain input from command window
            Scanner input = new Scanner ( System.in );
            System.out.println();  // outputs a blank line
            System.out.print( "Please enter the employee name or quit to terminate program: " );
            // prompt for and input employee name
            String nameOfEmployee = input.nextLine(); // read what user has inputted
            if ( nameOfEmployee.equals("quit")) // Check whether user indicated to quit program
              System.out.println( "Program has ended" );
              quit = true;
    else
              // User did not indicate to stop, so continue reading info for this iteration:
              float hourlyRate; // first number to multiply
              float hoursWorked; // second number to multiply
              float product; // product of hourlyRate and hoursWorked
              System.out.print( "Enter hourly rate: " ); // prompt
              hourlyRate = input.nextFloat(); // read first number from user
              while (hourlyRate <= 0) // prompt until a positive value is entered
                 System.out.print( "Hourly rate must be a positive value. " +
                   "Please enter the hourly rate again: " ); // prompt for positive value for hourly rate
                  hourlyRate = input.nextFloat(); // read first number again
              System.out.print( "Enter hours worked: " ); // prompt
              hoursWorked = input.nextFloat(); // read second number from user
              while (hoursWorked <= 0) // prompt until a positive value is entered
                 System.out.print( "Hours worked must be a positive value. " +
                   "Please enter the hours worked again: " ); // prompt for positive value for hours worked
                  hoursWorked = input.nextFloat(); // read second number again
              product = (float) hourlyRate * hoursWorked; // multiply the hourly rate by the hours worked
              // Display output for this iteration
              System.out.println(); // outputs a blank line
              System.out.print( nameOfEmployee ); // display employee name
              System.out.printf( "'s weekly pay is: $%,.2f\n", product);  // display product
              System.out.println(); // outputs a blank line
          // Display ending message:
          System.out.println( "Thank you for using the Payroll program!" );
          System.out.println(); // outputs a blank line
       } // end method main
    } // end class Payroll3I still get the following error codes:
    C:\IT215\Payroll3>javac Payroll3.java
    Payroll3.java:28: class, interface, or enum expected
    public static void main( String args[] )
    ^
    Payroll3.java:33: class, interface, or enum expected
    boolean quit = false; // This flag will control whether we exit the loop b
    elow
    ^
    Payroll3.java:36: class, interface, or enum expected
    while (!quit)
    ^
    Payroll3.java:42: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:43: class, interface, or enum expected
    System.out.print( "Please enter the employee name or quit to terminate p
    rogram: " );
    ^
    Payroll3.java:45: class, interface, or enum expected
    String nameOfEmployee = input.nextLine(); // read what user has inputted
    ^
    Payroll3.java:48: class, interface, or enum expected
    if ( nameOfEmployee.equals("quit")) // Check whether user indicated to q
    uit program
    ^
    Payroll3.java:51: class, interface, or enum expected
    quit = true;
    ^
    Payroll3.java:52: class, interface, or enum expected
    ^
    Payroll3.java:57: class, interface, or enum expected
    float hoursWorked; // second number to multiply
    ^
    Payroll3.java:58: class, interface, or enum expected
    float product; // product of hourlyRate and hoursWorked
    ^
    Payroll3.java:60: class, interface, or enum expected
    System.out.print( "Enter hourly rate: " ); // prompt
    ^
    Payroll3.java:61: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number from user
    ^
    Payroll3.java:64: class, interface, or enum expected
    while (hourlyRate <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:68: class, interface, or enum expected
    hourlyRate = input.nextFloat(); // read first number again
    ^
    Payroll3.java:69: class, interface, or enum expected
    ^
    Payroll3.java:72: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number from user
    ^
    Payroll3.java:75: class, interface, or enum expected
    while (hoursWorked <= 0) // prompt until a positive value is entered
    ^
    Payroll3.java:79: class, interface, or enum expected
    hoursWorked = input.nextFloat(); // read second number again
    ^
    Payroll3.java:80: class, interface, or enum expected
    ^
    Payroll3.java:86: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:87: class, interface, or enum expected
    System.out.print( nameOfEmployee ); // display employee name
    ^
    Payroll3.java:88: class, interface, or enum expected
    System.out.printf( "'s weekly pay is: $%,.2f\n", product); // display
    product
    ^
    Payroll3.java:89: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:91: class, interface, or enum expected
    ^
    Payroll3.java:96: class, interface, or enum expected
    System.out.println(); // outputs a blank line
    ^
    Payroll3.java:98: class, interface, or enum expected
    } // end method main
    ^
    27 errors
    Any other suggestions?

  • How can i solve the problem relate with gmail links opening in firefox ? New link start in new tab and disconnects.Also youtube streaming breaks everytime .

    Firefox disconnects by clicking link in my gmail and most of time i refreshes the page few clicks. And also some problem relate with playing youtube videos. I frankly notice that i connect my net using PC Suite and also system protected with Anti virus program. So kindly check my browser and restore it's missing without using factory reset. Notify me for any urgent update of yours 16th version. Thanking for yours brilliant support .
    Jaison James.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • HP 25 Calculator - Hard problem related to memory

    Hi All,
    I have an old HP 25 calculator, and I tried to revive it after 20 years have stopped.
    There is a problem related to memory malfunction that is, the store functions and programe functions don´t work.
    Can any one of you help me?
    I would like to know if there is available some electrical scheme to understand and analyse what probrably is happening and also if there is some workshop here in São Paulo - Brazil, that could fix these old calculator.
    I live in Brazil, in São Paulo city.
    Thanks in advance.

    Hi,
    I think you will find the HP Calculator Museum forums a good place to ask:
    http://www.hpmuseum.org/forum/
    (ask your question in the General Forum).
    I am sure there someone will give you some guidance.
    Best regards.
    Note: I do not work for HP, I just like playing with calculators :-)

  • Payroll Program Part 3 (confused)

    Okay, I'm sure you guys are sick of me by now. :-)
    This is the last part of an assignment that's supposed to calculate an employee's weekly pay, these are the requirements for this phase:
    Payroll Program Part 3:
    Modify the Payroll Program so that it uses a class to store and retrieve the employee's
    name, the hourly rate, and the number of hours worked. Use a constructor to initialize the
    employee information, and a method within that class to calculate the weekly pay. Once
    stop is entered as the employee name, the application should terminate.
    So I wrote the separate class:
    // Employee class stores and retrieves employee information
    import java.util.Scanner; // program uses class scanner
    public class Employee1
       // instance fields
       private double rate;
       private double hours;
       private String employeeName;
       // class constructor
       public Employee1()
          rate = 0.0;
          hours = 0.0;
          employeeName = "";
       } // end class Employee1 constructor
       // set rate
       public void setrate(double rate)
          rate = rate;
       } // end method setrate
       // get rate
       public double getrate()
          return rate;
       } // end method getrate
       // set hours
       public void sethours(double hours)
          hours = hours;
       } // end method sethours
       // get hours
       public double gethours()
          return hours;
       } // end method gethours
       // set employee name
       public void setemployeeName(String employeeName)
          employeeName = employeeName;
       } // end method setemployeeName
       // get employee name
       public String getemployeeName()
          return employeeName;
       } // end method getemployeeName
       // calculate and return weekly pay
       public double calculateWeeklyPay()
          return rate * hours; // display multiplied value of rate and hours
       } // end method calculateWeeklyPay
    } // end class Employee1...and modified the original program:
    // Payroll Program Part 3
    // Employee1 object used in an application
    import java.util.Scanner; // program uses class Scanner
    public class Payroll3
       // main method begins execution of Java application
       public static void main( String args[] )
          // create and initialize an Employee1 object     
          Employee1 employee = new Employee1(); // invokes Employee1 constructor
          employee.setrate();
          employee.sethours();
          Double weeklyPay = employee.calculateWeeklyPay();
          // create Scanner to obtain input from command window
          Scanner input = new Scanner( System.in );
          String employeeName = ""; // employee name to display
          Double rate; // first number to multiply
          Double hours; // second number to multiply
          Double weeklyPay; // product of rate and hours
          // loop until 'stop' read from user
          while( employeeName.equals("stop") )
             System.out.print( "Enter employee name or 'stop' to quit: "); // prompt
             employeeName = input.next (); // read employee name from user
             System.out.print( "Enter hourly rate: " ); // prompt
             rate = input.nextDouble(); // read first number from user
             // check if hourly rate is positive number
             if( rate <= 0 )
                System.out.print( "Enter a positive amount" );
                System.out.print( "Enter hourly rate: " ); // prompt
                rate = input.nextDouble(); // read first number from user
             } // end if
             System.out.print( "Enter hours worked: " ); // prompt
             hours = input.nextDouble(); // read second number from user
             // check if hours worked is positive number
             if( hours <= 0 )
                System.out.print( "Enter a positive amount" );
                System.out.print( "Enter hours worked: " ); // prompt
                hours = input.nextDouble(); // read second number from user
             } // end if
             weeklyPay = rate * hours; // multiply numbers
             System.out.printf( "Employee \n", employeeName); // display employee name
             System.out.printf( "Weekly pay is $%d\n", weeklyPay ); // display weekly pay
          } // end while
       } // end method main
    } // end class Payroll3I managed to compile the separate class just fine, but when I tried to compile Payroll3 I got these [three error messages|http://img150.imageshack.us/img150/3919/commandpromptrl9.jpg].
    I think I have an idea of what I did wrong, but I'm not sure what to change. I tried to emulate the code from some examples in my chapters and online but I'm a little in the dark about how these to files are actually supposed to work together.
    Also, the requirements say the program should end when 'stop' is entered as the employee name, I don't know if that applies to what I already have in Payroll3 or if I should use a sentinel controlled loop again in Employee1. I tried that and I got a whole host of error messages (probably did it wrong) so I just removed it.
    I'm going to play around with this a little more, I'm reluctant to change anything in my separate class since I managed to compile it, so I'm going to try some different things with Payroll3.
    If anyone has any suggestions I would greatly appreciate it, I'm a total newbie here so don't hesitate to state the obvious, it might not be so obvious to me (sorry for the lengthy post).
    Edited by: Melchior727 on Apr 22, 2008 11:21 AM
    Edited by: Melchior727 on Apr 22, 2008 11:23 AM

    employee.setrate();
    employee.sethours();First of all, your Employee1 class' setrate() and sethours() method both requires a parameter of type double.
    // loop until 'stop' read from user
    while( employeeName.equals("stop") )
    System.out.print( "Enter employee name or 'stop' to quit: "); // prompt
    employeeName = input.next (); // read employee name from userIf you want the while loop to stop when "stop" is entered, then change the condition to:
    while (!(employeeName.equals("stop))){code}
    This way the loop will perform whatever you tell it to do when it's NOT "stop".
    Also, take the prompt statements and paste them once outside the while loop, and a second time at the end of the loop:
    <example>
    == prompt for reply
    == while()
    == {
    == ....
    == prompt again
    == }
    <example>
    Fix those problems first and see how it goes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Payroll Program - please help

    I have a Java assignment due this Sunday, and I'm lost. I'm completely new to Java and this is only the second thing I've tried so far, so bear with me please, and don't laugh. :)
    This is the assignment:
    +"Create a non-GUI based Java application that calculates weekly pay for an+
    +employee. The application should display text that requests the user input the name+
    +of the employee, the hourly rate, and the number of hours worked for that week. The+
    +application should then print out the name of the employee and the weekly pay+
    +amount. In the printout, display the dollar symbol ($) to the left of the weekly pay+
    +amount and format the weekly pay amount to display currency."+
    In my chapter it talks about how to write a program that adds integers, so I tried to emulate that example but instead make it multiply. I wasn't sure how to do the employee's name, there is an explanation on printing lines of text, but not inputing and displaying text, only numbers. So for the employee's name I did some guesswork (for the data type declaration, etc), so I have no idea if that's right, (or if any of this is for that matter). I also don't know how to make it display the dollar symbol.
    Here is what I did so far:
    // Payroll Program Part 1
    import java.util.Scanner; // program uses class Scanner
    public class Multiplication
       // main method begins execution of Java application
       public static void main( String args[] )
          // create Scanner to obtain input from command window
          Scanner input = new Scanner( System.in );
          String name; // employee name to display
          int number1; // first number to multiply
          int number2; // second number to multiply
          int product; // product of number1 and number2
          System.out.print( "Enter employee name: "); // prompt
          name = input.nextString (); // read employee name from user
          System.out.print( "Enter hourly rate: " ); // prompt
          number1 = input.nextInt(); // read first number from user
          System.out.print( "Enter hours worked: " ); // prompt
          number2 = input.nextInt(); // read second number from user
          product = number1 * number2; // multiply numbers
          System.out.println( "Employee \n", name): // display employee name
          System.out.printf( "Weekly pay is %d\n", product ); // display product
       } // end method main
    } // end class MultiplicationKnow that I'm not asking anyone to do my homework for me, I just need some direction. I don't know what I'm doing, my teacher isn't helping and I'm not getting anything out of my chapters. Any assistance would be appreciated.

    newark wrote:
    You don't know how to print the $ symbol? Your code shows that you know how to print with System.out.println()...all that's left is finding the $ symbol on the keyboard...
    So what exactly is your problem? You say you don't know if your code is right. I have a suggestion...*run* your code and see if it works. If it works, it's right. If not, then come back here and let us know what it does do, including any exact error messages you might get.It's not easy to detect sarcasm over the Internet. Seriously I didn't think it would be that simple, but I just added the symbol, so now it says +"Weekly pay is $%d\n"+
    I don't know if that's in there right.
    Also, I tried to compile the program, and it found four errors, I fixed a couple (changed : to ; and apparently the public class name has to be the same as the file name, so now its public class Payroll1), but there are two others mistakes I made, both of which were my attempt at trying to include the program request the input and display the output for the employee name.
    They are both "cannot find symbol" errors, the first one is input.*nextString ()*; and the second is System.out.*println*
    So my guess at replacing int with "String" was wrong, and println is wrong. I'm going to try something else.

  • Problem related to PS CS6 ext. on Mac.  Nikon DSLR D610 raw file can not be opened

    Problem related to PS CS6 ext. on Mac. Installation is OK but I can't open picture from my Nikon D610 (Raw NEF format). I get a message "can not open this format ...". Checking Help menu to see if I miss an update the message I get is that I'm up-to-date but at the end Nikon D610 (format supported of course) files can not be opened . JPEG are OK but I work with raw files. Thanks

    What OS are you running: 10.x.x?
    What version of the Camera Raw plug-in do you have?  Do (About) Plug-ins / Camera Raw to find out.
    You need at least ACR 8.3 to open D610 files.  If the Help / Updates process does not work, then there is a manual install process you can do.  The page with the download is for when people accidentally updated to ACR 8.4 and need to roll back to ACR 8.3 due to their OS being incompatible, but the installer on that page works even if you haven’t erroneously updated to ACR 8.4:
    http://helpx.adobe.com/x-productkb/multi/camera-raw-84-support-policy.html

  • Blackberry Desktop Software has stopped working. A problem has caused the program to stop...

    I have a Tour 9630 and just installed v6.0 and receiving an error window "Blackberry Desktop Software has stopped working. A problem as caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available."  I have not received any message from Windows after 2 days.  Has anyone experienced this problem?  If so, I would appreciate any guidance.  I have Windows 7, if that matters. Thank you. in advance.

    Hi somewhatstock
    How far did you get with them? Did they have any ideas what might be causing the problem? Trying to work on it myself, so trying to eliminate what others might have tried. Curious why it works on my Desktop however. Losing tethering really causes problems as I rely on tethering with my laptop quite a lot.  
    Any information most welcome,
    regards,
    John

  • Problem in submiting standard program via job

    Hi Experts ,
       I have developed  programs for creating and posting return lots and payment lots for multiple incoming  files. For this i have submited standard  program of FPB3 and FPB5 transaction .  What happened is ,  if the child program fails due to some reason for one file , it is not coming back to the mother program and as a result other files remain unprocessed . So for this i tried with submiting the child program Via job so that if child program fails , only that job will fail and the mother program will not fail , so rest  files will be processed .
    But the problem is the child program (standard program of FPB3/FPB5 )  is not working by this i.e.  the lots are not getting created adn.
    Awaiting for any respone .

    Hi,
    If you are using Submit via Job, you need to use JOB_OPEN and JOB_CLOSE FM's.
    JOB_OPEN : Create a new job and return you the job number which you use in Submit
    JOB_CLOSE: Will set the release conditions of the job.
    Example:
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    Jovito

Maybe you are looking for