Having a few problems with the codes for this program.

i type in the code. in notepad, then compile it to java, but i always seem to get 3 errors. if anyone can help, id really appreciate it.
using java:
Calculate the salary at the end of two weeks. You know that:
? For the first 40 hours worked in a week the pay rate is $10/hour and after that
initial 40 hours the pay rate is $15/hour.
? If the total salary (week1+week2) is less than $500, the employee will receive 10%
bonus. If the salary is between $500 and $1000, the employee will receive 5%
bonus. If the salary is between $1000 and $2000, the employee will receive 1%
bonus.

Well, maybe if you showed your code and the complete and exact "messages", we could help you.

Similar Messages

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • My Client is having a serious problem with the Contact Form Widget

    My Client is having a serious problem with the Contact Form Widget that I can not figure out how to correct.
    I created a website for a client and inserted a Contact Form widget on their 'Contact Us' page. Whenever anyone uses the form, the e-mail my client receive shows my e-mail address as the sender. So, when they 'reply' to the e-mail, the reply is sent to me and not the person who sent the original message. This creates a major problem in that I get barraged with e-mail replies while my client's potential customers go without a response.
    When I look at  'Site Manager > System E-Mails > Workflow Information > E-mail From Address' on the site's Admin Console, it shows my e-mail information. Is this is what needs to be changed?  If it is, what needs to be placed in that field so that the e-mail my client receives shows the senders e-mail information in the 'From' field.  My client wants to be able to click reply and have the message sent to the right party. They would be very upset if they have to cut and past the senders e-mail address from the body text on every contact they receive.
    Their feeling is that if I can't find a way to make the contact form work the way it should, then it's useless to them.
    Can anyone help me figure this out? I really don't want to disappoint my first client.

    Are you on a plan that has the CRM feature that stores your customers' data? If so, the idea of the contact form is that you'll receive a notification that there's been an inquiry filled out on your contact form and there should be a link in that email notification that leads to the "Case" that was created when that customer filled out a contact form.  You can click that link and visit the case for that customer in your BC site and reply to them from there so that all of the correspondence is logged in the CRM for safe-keeping and for your records.
    If your client finds this is too much work to login to BC to reply every time, then you should check to see if you have the "Customer Service Ticketing" feature on your hosting plan.  This is a feature where you create a dedicated email account (like [email protected]) and the BC system will automatically login to that email account and pull any emails in that inbox and convert them to a customer case for the sender of the email and then it will send out a notification via email to any of the BC Admin users you delegate as "Customer Service Agents".  Since the CST integrates with the BC CRM it lets you reply directly within the email-- but when you reply it will be going to that same email address dedicated to the CST but once the CST service checks your email again and sees that you replied to this inquiry it will log your reply against the customer's case and sends your reply via email back to them so that all the correspondance gets logged on BC's CRM but you can still reply via email.
    There's no way to use the default web forms to update the "From" or "Reply-To" address.. it must come from an approved email address to avoid spam issues.  On most web services you cannot change the "from" address anyway but usually you can at least specify the "Reply-To" address so that when someone hits "reply" in their email client it will reply to whoever you setup as the "Reply-To" address.
    Here's some more information about CST: http://kb.worldsecuresystems.com/kb/customer-service-ticketing.html?bc-partner
    I don't think the CST feature is in the webMarketing BC plan-- I think it's only in the webCommerce plan so if you have less than an webCommerce plan you have to tell your client to reply through BC by clicking the link in the notification they get.  You can justify it by saying its one or two more steps but it keeps the entire convo on record in their CRM for easy referral later.

  • Has anyone one else had problems redeeming the code for the free onetime download of Star Trek 2009 Movie?

    Has anyone one else had problems redeeming the code for the free onetime download of the Star Trek 2009 Movie?

    dawnfromcabot wrote:
    ITUNES HAS CHARGED MY DEBIT CARD $99.99 FOR GLOBAL WAR RIOT-SOME GAME I DID NOT KNOW WAS LOADED ON MY OTHER PHONE; HOWEVER, WHEN I PULLED UP THIS APP TO SEE EXACTLY WHAT IT WAS WAS I SURPRISED TO SEE I COULD DOWNLOAD IT FOR 'FREE'. I HAVE CONTACTED ITUNES THROUGH THIS REDICULOUSLY CHICKEN SH_T SYSTEM THEY USE SO THEY DO NOT ACTUALLY HAVE TO HEAR HOW UPSET A PERSON IS NOW THAT THEY CANNOT BUY FOOD FOR THEIR CHILDREN BECAUSE OF A MISTAKE MADE ON ITUNES PART.  I DID RECEIVE AN EMAILED RESPONSE FROM STEPHANIE WHO ADVISED THIS WAS PUCHARED ON A PHONE THAT HAS PURCHASED DOWNLOADS IN THE PAST. I WONDER IF SHE THOUGHT TO LOOK AT MY ENTIRE DOWNLOAD HISTORY AND DISCOVER THAT NOTHING HAS EVER BEEN PURCHASED ON MY ITUNE ACCOUNT IN THE AMOUNT REMOTELY CLOSE TO WHAT THEY ARE CHARGING ME NOW.  THAT IS BECAUSE I DO TRY TO MONITOR THIS ACCOUNT AND OBVIOUSLY THIS LAST PURCHASE WAS DONE WITHOUT MY KNOWLEDGE UNTIL I CHECKED MY ONLINE BANKING ACCOUNT, WHICH I DO EVERY DAY.  TO MAKE MATTERS WORSE THE APP STATES IT IS FREE TO INSTALL WHEN YOU PULL IT UP SO NO ONE HAS CLARIFIED TO MY WHERE THE $99.99 COMES INTO PLAY.  I WILL NOT DROP THIS UNTIL MY BACK ACCOUNT HAS BEEN PROPERERLY CREDITED IN THE SAME TIME FRAME IT TOOK YOU TO TAKE MY MONEY. I WILL LAUNCH A COMPLAINT WITH EVERY POSSIBLE ENTITY IN THE ITUNES COMPANY AND BUSINESSES OUTSIDE THAT REGULATE THEIR BUSINESS UNTIL THIS HAS RESOLVED IN MY FAVOR AS I AM THE ONE WHO HAS BEEN VICTIMIZED BY A COMPANY I INVITED INTO MY TELEPHONE NETWORK IN GOOD FAITH!!!!!!!!!!!!
    Reading that is giving me a headache, how about normal type.

  • Hi Apple! I am having a few problems with my 6 month old iPad mini (ios 7.1.1). I am using my iPad and then some time later it just restars! Don't know why and it just keeps doing it! Please fix or if I restore my iPad will it do any good? Thank you

    Hi Apple! I am having a few problems with my 6 month old iPad mini (ios 7.1.1). I am using my iPad and then some time later it just restars! Don't know why and it just keeps doing it! Please fix or if I restore my iPad will it do any good? Thank you

    Plug your iPad into your computer, open iTunes, and click Restore. This will reset your iPad to factory settings, so make sure everything important is stored safely. Once the restore is complete, do NOT restore from your backup.
    If you still have problems, take the iPad to the Apple Store or another AASP (Apple Authorised Service Provider). If you're still within warranty, any service will be of no cost. Check your serial number here or find your receipt.
    Hope I've helped!
    PS: This is a peer-to-peer forum. Apple generally doesn't pay attention here.

  • Haviing problem with the facebbok for 9800

    i hava a problem with the facebook for blackberry 9800, i download it many times but i can not see the i con, i used many ways to find out it, but failed to find it,

    Hello nomanmahmoo, 
    Welcome to the forums. 
    Have a look at this article which may help you out with your issue. 
    Facebook icon is missing on the BlackBerry smartphone after upgrading to Facebook
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • I have a problem with the indicator for power on the side of my HP DV6-1341el.

    I have a problem with the indicator for power on the side of my HP DV6-1341el. Insert the adapter's power jack on the notebook in front of the LED battery charging works, windows detects that the battery is charged, but if I use the diagnostic programs, they tell me they found that the computer is running on battery power and not AC mode.
    Where is the problem?
    I have also made the maneuver for the recognition by the operating system of the battery and does not seem to be there the problem.
    If I use the laptop without battery in AC mode happens that led to the side of the notebook blinks twice, three times and then goes off when I put the power jack.

    Go into the Device Manager. Expand the battery device, select the ACPI-Compliant Battery Control Method device, right-click it and select uninstall. After you have done that, right-click any device in the Device Manager and select scan for hardware changes. Your operating system will reinstall the  ACPI-Compliant Battery Control Method device. 
    Post your results whether they are negative or positive to keep us posted.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • I am having a strange problem with the awesome bar

    The awesome bar/location bar is no longer as awesome as it used to be. When I start typing in an address it seems like it no longer checks through my history and gives a list of possible matches but just gives the stem of an address. For example, if I type in 'goo' it will complete this to 'google.com' if I then append this with an '/a' it will complete this to 'google.com/analytics' but that's as good as it gets, as I say, no list from the history or bookmarks.
    I've checked the options and also about:config and all the settings are as they should be, as far as I can tell (and I certainly hadn't changed any of them when it started misbehaving). I've also disabled all extensions and plug-ins.
    It's driving my slightly bonkers because I quite often use sites with long addresses and can't remember each of the components of each address. I'd switch to using Chrome but I also use Firebug a fair bit so don't really want to do this.

    Hi cowtan, <br/>Sorry you are having problems with the awesome bar.
    I imagine the new behaviour may be reversed by changing some pref but I have not looked that up.
    Regardless of the new behaviour you seem to have some fault as my awesomebar still gives bookmarked items.
    As a troubleshooting step try adding an asterisk in the awesomebar (as first character or anywhere) that should then filter the results in the dropdown list to bookmarked only items, does that work ?
    * see [[Search your bookmarks, history and tabs with the Awesome Bar#w_changing-results-on-the-fly]]_changing-results-on-the-fly
    You possibly have some extension interfering with the awesome bar, try Firefox in safe mode (but do NOT* at this stage try the Reset Firefox option)
    <nowiki>*</nowiki>'''edit''' - personal opinion, if a user; such as you; is knowledgeable enough to use ''about.config'' the easy solution of ''FirefoxReset ''is probably not the best route, as it can have unwanted side effects that are avoidable.
    * [[Troubleshoot Firefox issues using Safe Mode]]
    Do your bookmarked items appear in safe mode ?
    <u>Try a new Profile.</u><br/>The best method for troubleshooting this will be to set up a new Firefox profile, you can then: experiment, troubleshoot, alter settings or extensions installed in that profile without changing and potentially damaging your current profile.
    * http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    I suggest to prevent unexpected problems you
    * use a sensible name such as test 2012 for the profile name
    * ensure an empty folder is used & do not then rename or delete the new profile (instead add or delete shortcuts to it)
    * also see http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • What is the problem with the code to get all  opportunities

    Hello All,
    I have wrote the java code as below to get the all opportunities.But i did not get the opportunities i.e its returns null . Any one,Please suggest me what is the problem with the below code.
    OpportunityWS_OpportunityQueryPage_Output opportunityWS_OpportunityQueryPage_Output = new OpportunityWS_OpportunityQueryPage_Output();
                   Opportunity[] opportunities=opportunityWS_OpportunityQueryPage_Output.getListOfOpportunity();
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Dinesh,
    Please check out the code and give me your suggestions
    *try{*
    String address="MY URL"+getSessionId();
    Default_BindingStub dbs=new Default_BindingStub();
    dbs.setMaintainSession(true);
    OpportunityLocator loc = new OpportunityLocator();
    loc.setDefaultEndpointAddress(address);
    loc.setMaintainSession(true);
    OpportunityWS_OpportunityQueryPage_Output opportunityWS_OpportunityQueryPage_Output = new OpportunityWS_OpportunityQueryPage_Output();
                   Opportunity[] opportunities= opportunityWS_OpportunityQueryPage_Output.getListOfOpportunity();
    System.out.println("opportunities size::"+opportunities.length);
    *}catch(Exception e){*
    e.printStackTrace();
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problems with the Search for room content

    Hi,
    I face a problem configuring the search for room content using KM search iView (com.sap.km.Search).
    I found the chapter Configuring the Search for Room Content in the help. So I set up the following things :
    1- I assign the room_id iView parameter to the roomid room parameter (in the template)
    2- I added room_cm_search component to the component set (I added it at the bottom of the "component for basic search function")
    3- I select the entry "Folder" as the default search scope in the search option set. I specify a root folder for search as well.
    But it doesn't work properly. It always returns "no result found". And if I add the room_cm_search component at the top of the "component for basic search function", It runs the search on all the documents of the default search scope, and not only on the room documents.
    Can you please tell me the right way to configure the search for room content using the com.sap.km.Search iView ?
    I work on EP 7.0 SP 10.
    Thanks a lot,
    Loïc LEVEUGLE

    Hi Loic,
    the Room Content Search iView is a special Search iView that is filtering for documents that were created in the Room Context (all documents get a specific metadata that is keeping the roomiD) . The easiest thing is to use the standard iView used for the delivered templates from SAP.
    I would advise to use the iView that is already preconfigured for a room template or part template and can be found and referenced in your template from the following path: Portal Content ->com.sap.ip.collaboration--> TemplateAndPartContent --> Generic -->iViews and take the iView "Search Room"
    If you reference that iView in your room template or room part template, you have to think about the correct configuration in the template configuration iView. Just take as example the configuration of the part template "SAP Search Room".
    Or even better: Copy a template (room or part) from SAP that is containing the Room Search and delete everything what you don´t need out of the template. You safe time and you can add all additional content you´ll need to your template. Some ideas can be found in the following "How to Guide":
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0496f69-cb70-2910-21a6-c4cf2cc66311
    What you have written under 3 -> would never work as the root folder for search doesn´t make any sense as the documents of a room are stored in different folders and you can´t define a root folder. Therefor you have the specific room_id parameter that is filtering what documents belong to the room.
    Good luck,
    Anja

  • My problem with the phone is this

    ontop of all the typical problems with the software i am having the following issue.everytime i go to update to ed04 it will download the whole way then fail to install.so eventhough the new 05 is out and supposedly fixes everything i can't even update to that.
    they seriously should have just given the option over the phone to swap for the charge since my stores in the area were out of them for over a week now.i went in everyday after work and even called other area stores and had no luck.i'm seriously ready to just cancel my service and move on to another provider.i need my phone since i have a side job i do out of my hosue that is just beginning to take off and missing calls is not helping me exapnd.

    adamamazing wrote:
    ontop of all the typical problems with the software i am having the following issue.everytime i go to update to ed04 it will download the whole way then fail to install.so eventhough the new 05 is out and supposedly fixes everything i can't even update to that.
    they seriously should have just given the option over the phone to swap for the charge since my stores in the area were out of them for over a week now.i went in everyday after work and even called other area stores and had no luck.i'm seriously ready to just cancel my service and move on to another provider.i need my phone since i have a side job i do out of my hosue that is just beginning to take off and missing calls is not helping me exapnd.
    Try a factory reset, it is a pain, I know, I've done it a couple of times, what do you have to lose at this time. Just backup your contacts and remove your SD card, even though it is not necessary, I still do just for the heck of it.

  • I have the code for this project, but how do I add this user-defined exception that I want?

    For a final VB.NET project, I have to write a project that ascends and descends a word or number chosen by the user. 
    This is what I want to do:
    I want to add a user defined error that will stop the program and tell the user to input a value into the program if they did not. I do not know how to do this. I think I would use a Null Reference exception. 
    Here is the code for the project:
    Module Module1 'VB.NET Final Project 12/30/14 . Option 3: Write a program to run two separate threads printing numbers or words (It can do both) in ascending and descending orders. The words have to be given by the user.
        Dim Ascending As System.Threading.Thread = New Threading.Thread(AddressOf PrintAscend) 'Two threads are declared,
        Dim Descending As System.Threading.Thread = New Threading.Thread(AddressOf PrintDescend) 'ascending and descending 
        Sub Main()
            Console.WriteLine("VB.NET Final Project 12/30/14 . Option 3: Write a program to run two separate threads printing numbers or words (It can do both) in ascending and descending orders. The words have to be given by the user.")
            Ascending.Start() 'starts first thread
        End Sub
        Sub PrintAscend()
            Console.WriteLine("Please type in a word to print in ascending order.") 'the program asks for users to input a word
            Dim input As String 'as a string
            input = Console.ReadLine()
            For i As Integer = 0 To input.Length - 1
                Console.WriteLine(input.Chars(i)) 'prints the letters of the word in ascending order 
            Next
            If Ascending.ThreadState = Threading.ThreadState.Running Then Descending.Start() 'starts second thread
        End Sub
        Sub PrintDescend()
            Console.WriteLine("Please type in a word or number to print in descending order.")
            Dim input As String
            input = Console.ReadLine() 'user inputs the word that he wants
            For i As Integer = input.Length - 1 To 0 Step -1
                Console.WriteLine(input.Chars(i)) 'prints the letters of the word in descending order 
            Next
            Console.WriteLine("Please press enter key to close the program, and thanks for your time.")
            Console.ReadKey()
        End Sub
    End Module

    Dejavu again?
    Is your teacher instructing you to use a User Defined
    error or do you just want to accept the user input, check it, give a message, and repeat?
    It seems to me you are missing the basic program loop? This example checks the user input and then performs an action, then repeats. If the user enters Quit execution stops. Is that what you want to do?
    Module Module1
    Sub Main()
    Console.Title = "Make a Decision"
    Dim theline As String = ""
    Do While theline <> "Quit"
    Console.WriteLine(vbLf & "Enter a or b." & vbLf)
    theline = Console.ReadLine()
    Select Case theline
    Case "a", "A"
    Console.WriteLine(vbLf & ">> Result: You entered A.")
    Console.WriteLine(vbLf & " ** Output Complete **" & vbLf)
    Case "b", "B"
    Console.WriteLine(vbLf & ">> Result: You entered B.")
    Console.WriteLine(vbLf & " ** Output Complete **" & vbLf)
    Case Else
    Console.WriteLine(vbLf & """" & theline & """ is invalid.")
    End Select
    Loop
    End Sub

  • Need code for this program in pl/sql

    Hi,
    was looking for a pl/sql code for the following case
    If there are two employees from the EMP table. i want all the names of the managers common to the two employees....
    to explain in detail : if employee1 and employee2 have the same manager mgr1....mgr1 should be displayed.
    else if employee 1 and employee2 have no immediate manager in common...meaning team leader of employee 1 and employee2 are different but the project managers for both the employee is same..in this case the project manager's name should be displayed......
    else in worst case when there are no managers common between these two employees.........the CEO who is at the highest level is common....then display CEO's name
    it's hierchiacal structure......
    thanks,
    Preethi

    Why PL/SQL? Why not look at if this can be done using SQL firstly? SQL is the preferred language for crunching Oracle data. Not PL/SQL.
    Think data sets.
    One method to do this in SQL would be to build a hierarchical list of managers for each employee. E.g.
    LEVEL MANAGER
    1     Jack
    2     John
    10     Dan the CEOOnce you have such a list for each employee, you can join these two lists on matching names. Then you simply need to find the matching join that has the lowest level.
    I'm sure there are other approaches. But unless you put together some test data, put together some SQLs and play around with this problem, you are not going to learn anything.
    And no, copying and pasting an answer that someone is inevitable to post in response is NOT learning anything new.
    So why not try and solve this problem yourself? Gain some new knowledge. That will only do your career well as your employer is after all expecting you to write the code to solve this problem - and not for members of this forum to supply the code for you.

  • Just purchased Wndows Vista and having problems with the port for Palm 125

    I just purchased a Windows Vista computer and having problems with getting my Palm 125 to sync with the desktop.  I get an error message saying:  "Com1 not available"  What do I do?
    Thanks,
    Frustrated
    Post relates to: Palm m125
    This question was solved.
    View Solution.

    Sorry, that didn't work.  I get no drop down menu from the Hot Sync Manager for the Serial Port.  What comes up often is:  "The selected port, COM1, is not available at this time.  Hot Sync Manager will open the port when it becomes available." 
    Could it be the Norton Antivirus Firewall that is preventing the Hot Sync Manager to open the Serial Port?  Just a thought.  Thanks for your help.
    Post relates to: Palm m125

Maybe you are looking for

  • Email with excel attachment

    Hello friends, I'm having an issue with excel attachmnet which is being genetaed through email using function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'...issue is getting more space on first column of the data...not header column, only space on data col

  • I can't hear the person I'm talking with but he can loudly hear me

    My FaceTime isn't working properly. When I'm talking to my friend, he could loudly hear me but in my itouch, I can't hear him even when I'm on my earphones or not. I could hardly hear him.

  • JMS Adapter EJB Add-on

    hi I want to add this code to change  ONLY the JMS_IBM_Last_Msg_In_Group JMS Parameter any way to do it with EJB after all the messages are sent with the adapter? Thx,Shai MQConnectionFactory factory = new MQConnectionFactory(); factory.setQueueManag

  • Unable to print pictures

    I have Adobe photoshop Elements 11. My question is when I want to print a picture i get a pop-up stating ( The application is unable to intialize the printer settings) I love the software, but I need to be able to print my pictures. Please help me!!

  • How to disable Norton antivirus in 2008 MacBook?

    I'm missing the scrollbar when I open individual emails in my Yahoo account.That is the only place in my entire computer that the scrollbar is missing. I need to disable the Norton Antivirus as part of a diagnostic checklist. I don't see anything in