I am so stuck on something that's supposed to be simple

I am to write a program that asks the user for an employee name, hourly rate of pay and how many hours that employee worked. Then it is to display what the total pay for that employee is. Here is what I have so far:
// Due Week 2, Day 7. This program takes user input in the form of an employee name and
// an hourly rate and calculates a total pay.
import java.util.Scanner;
public class Payroll1
public static void main(String args[])
     Scanner input = new Scanner(System.in);
     String employeeName;
     double hourlyRate;
     double hoursWorked;
     double totalPay;
     System.out.print( "Enter employee name: " );
     String = input.nextString();
     System.out.print( "Enter hourly rate: ");
     hourlyRate = input.nextDouble();
     System.out.print( "Enter hours worked; ");
     hoursWorked = input.nextDouble();
     totalPay = hourlyRate * hoursWorked;
     System.out.printf( "Total pay is $%d\n", totalPay );
Please help! Why doesn't this work??
Thanks!

VRodDan wrote:
I have no idea what you just said. What is a wrap? I mean, highlight the code part of your post, and then click the "code" button above the text input box. By "highlight", I mean, move your mouse pointer to the start of the code in your post, then click, and then, KEEPING YOUR FINGER DOWN SO THE MOUSE STAYS CLICKED, drag the mouse pointer to the end of the code part of your post. Then, you can release the mouse button. See how the code part of your post is a different color? That's called "highlighting". Now, don't forget to click the "code" button that appears above the text input box.
You'll see that it adds special tags above and below the code part of your post? That's called wrapping.
Have you ever heard someone in a store say, "wrap it up"? They mean, putting the thing that they're buying inside of some paper, and then fold the paper around so the stuff they're buying is inside the paper. That's also called "wrapping". You may have received presents at some point in your life, say around December. That colorful paper that was around the boxes? That's called "wrapping paper".
Don't assume that every term is bizarre jargon.
If I knew all of the jargon and protocols (let alone how to execute them) I probably wouldn't be here.I think it's less a matter of jargon, than it is (1) paying attention (such as, to the formatting controls above the text input box), and (2) not panicking.

Similar Messages

  • Is the ipod touch 5 quieter than the iphone 5s? my daughters ipod seems pretty quiet for on full volume for something that is supposed to play music

    My daughters ipod 5 is noticeably quieter than my 5s.. Is this normal or is there something wrong with it? It seems very quiet for something that is made to play music. Thanks!

    Please make a Genius Appointment and take it in for service.

  • I accidently downloaded something that made my webcam flash on spuradically even once i deleted it. when i restarted my computer it got stuck at the white loading screen with the grey apple and wont go past there..what is wrong? will applecare cover this?

    i accidently downloaded something that made my webcam flash on spuradically even once i deleted it. when i restarted my computer it got stuck at the white loading screen with the grey apple and wont go past there..what is wrong? will applecare cover this?  my computer also slowed down drastically before it stopped working..thanks! HELP PLEASE!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
         a. Boot into the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    If you've booted from an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see Step 1.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then reboot as usual.
    Step 6
    Reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 7
    Repeat Step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a Time Machine or other backup.
    Step 8
    This step applies only to older Macs (not current models) that have a logic-board ("PRAM") battery. Both desktop and portable Macs used to have such a battery. The logic-board battery is separate from the main battery of a portable. A dead logic-board battery can cause a gray screen at boot. Typically the boot failure will be preceded by loss of the startup disk and system clock settings. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 9
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested. If you can't get to an Apple Store, go to another authorized service provider.

  • Tried to update to newest version. I got error because i didn't have this recovery program disc that was supposed to come with the purchase but it didn't and now my ipod touch 8gb won't connect with itunes and is stuck on a connection with itunes screen

    I tried to update to newest version via pc. I got error because i didn't have this recovery program disc that was supposed to come with the purchase so it says, but it didn't and now my ipod touch 8gb won't connect with itunes anymore and is stuck on a screen displaying an itunes icon with a usb icon.

    oke i'm not done with the whole thing, but i'm doing that right now. Most of the advice I've already read didn't work and at a certain point it said something about shutting down programs then restart. but i notice that there are some pretty important system things in that list and i don't want to mess up my pc :s i'm not a pc genius... and because i'm dutch and my pc-language is in dutch I often have trouble translating and well... i don't always understand the technical stuff in all the articles -_-

  • Why the new firefox version 31.0 is getting stuck when something is downloaded.

    Why the new firefox version 31.0 is getting stuck when something is downloaded. After force restart also same issue (still the download status is showing the same and again getting stuck) for 4-5 times and then it asks for to clear all the data. After that it is working fine. Again If I download something facing the same issue. Its really irritating. I am using windows7.

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Press the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • I have to pay for something that was not my fault, nor Verizon's fault, but is an act of God/nature.  Why is that?

    As I stated above, "I have to pay for something that was not my fault, nor Verizon's fault, but is an act of God/nature.  Why is that?"  I had a hard time keeping my phone charged at one time, so I called/visited my local retailer of Verizon, and they ordered me a new battery (first step after cleaning my phone. Not like it was dirty anyways). Got a new battery, put it in, still same problem.  Would not charge...boo! So, I bring it back, and they order me a replacement phone, since it "is still under warranty, and insured".  When I first brought my phone in, the young lady said, "That is why it is not charging; it was the charger port, that is why it was not charging. It is as loose as a goose" So, that is why she ordered me a new one. 
         So, get the new phone, put "new battery" back in.  All is good, all of what, 2 maybe 3 weeks later.  Now it is doing the same thing again. Checked the charging port, it is fine.  Bring it in, to the store, and questioned the young man behind the desk, and find out why I was charged the $299.95(+taxes & s/h). He said, "it was because the old phone was because there was "corrosion" around the port."  Of course, there was not a single note of it being loose.  He continued, and said it was because it was there had to be a time where you spilled something on it, even if it was a drop of any kind of liquid. Or, you/ or someone else, had it in the shower with them."  (Really, a drop of liquid, or taking the phone with me in the shower?)  How I could I get a "drop" of liquid in it, if I had an Otter-box on it, or why would I take it in the shower with me?  I admit, I am not the sharpest tool in the shed, but, really? Come on now!
         Since, I have to now pay for it, I am kind ‘a wondering if anyone else has, or had the same problem with their phone (s).  My wife has the same phone and she has not had this same problem.  Makes me wonder.  Since, my phone is doing this again, if it is something that I am doing wrong with it or not.  So, now they have ordered me a new battery, and we will see if this will be a new fix, or "good bye to Verizon."  Any comments, or suggestions, please email wife and me, and let me know. Thanks and God bless.

    Don't really see how this would be an act of God/nature.
    Regardless, are you saying Verizon should have to pay for those, though?

  • My Wifi doesn´t work. The Wifi icon on top menu bar states there is no hardware connected. How can I resolve this as previously Wifi connection worked perfectly. Is this something that to do with the computer hardware? Please advise.

    My Wifi doesn´t work. The Wifi icon on top menu bar states there is no hardware connected. How can I resolve this as previously Wifi connection worked perfectly. Is this something that to do with the computer hardware? Please advise.

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    I need to add a secondary hard drive to my time capsule. Can something that has been set up for a windows machine work without re-formatting?

    In addition to Niel's comments, if you plan to use Time Machine to backup a Mac to the secondary drive.....that application needs a drive that has been specifically formattted for Mac.  That would be Mac OS Extended (Journaled).
    PCs can also read and write to the Mac formatted drive.

  • I have an old file with an .A4P video from 1999. I don't own any Adobe products (and don't really want to buy any). I just want to be able to convert the file to something that I can actually view. Any help?

    I have an old file with an .A4P video from 1999. I don't own any Adobe products (and don't really want to buy any). I just want to be able to convert the file to something that I can actually view. Any help?
    I was a kid when I made a documentary for a school project. I've been trying to figure out how to retrieve the file. 4 years ago, I was able to get the files off the Iomega Zip drive (finally), but I now see the file is saved as a .A4P. There is also a file saved as a .PKG as well, but I don't know how to open this with my Windows 8 COmputer.

    .a4p is an Authorware v.4 (Windows) project.
    Interesting you have it as a .pkg...usually that's a published-on-a- Mac extension, if I recall.
    At any rate, can you put the file up on a Box, Dropbox, FTP, etc...and send me a URL?
    I should be able to published it so you can view the project (it would be an .exe).
    It can't be converted to anything though - not without manual effort.

  • Use... I realized that i spent my 27 years for using (fixing) computers. Because the Mac was perfect. After iMac, i was really fine with my computer... But after something, that doesn't bother me, happened. The screen started to get cloudy and black... An

    Hi...
    My name is Turgay and have been using computer since 1982... 2 years ago, because of my friend's advice, i bought an iMac... It was the first Mac that i use... Till that, i was using normal PC's...
    I bought an 24" iMac on July 2009 and started to use... I realized that i spent my 27 years for using (fixing) computers. Because the Mac was perfect. After iMac, i was really fine with my computer... But after something, that doesn't bother me, happened. The screen started to get cloudy and black... And it increased. Because of this i took my iMac to your authorised distributor http://www.bilkom.com.tr...
    They changed my screen but in 2 months it happened 3 times and i wanted them to change my iMac with new one, under customer laws... In our country, the device must be changed with new one if the same problem occurs in 3 months. Because i know the customer satisfaction of Apple, i didn' worry about it but Bilkom refused my will... I spoke with them for 2 months but nothing happened, they just told me, it' not our problem.
    Because of this speech, i sued them on June 2011... Last week, i won the case but just for the return of invoince... It costs 3.200 Turkish Liras (1.800$) and there's no 24" iMac unused... Bilkom again refused to give me an iMac... I thought that Apple's customer satisfaction can't be like this... I didn't write anything to Apple till now but if i can't get an iMac, i must return to normal PC after 2 years... And i don't want that... I offered an iMac 27" with core i7... No matter Bilkom accepts or not, they don't care of me... I'm a customer, they should do... I've never seen such a like company. I hope the real Apple will help my problem and save me from Bilkom...
    Waiting for your reply... Thanks and regards...
    Turgay Kala
    General Manager

    Unfortunately, you are not communicating with Apple here - we are all other users volunteering our time to help with technical problems.
    Here is a list of Apple contacts; there is no email address  - you will need to write a letter to their corporate headquarters or call them:
    http://www.apple.com/contact/
    Although, it appears that your problem is with a third party store and that you have won in court - did you get your money back? 24" iMacs have not been made since 2009 or 2010. Now there are 21" and 27" iMacs.

  • Just updated I pad 2 and some of my apps are dim and say waiting Is that something that takes a long time or does it mean something didn't work

    Just updated my I pad 2 and some of my apps are dim and say waiting. Is this something that takes a long time or could something be wrong?

    That means they are in the queue to be updated.
    If everything is working it will depend on the speed of your wifi connection as to how long it takes.

  • HT201343 When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    Are you using mirroring or using airplay within iTunes? If you are truly mirroring then you can view anything that is displayed on your computer through Apple Tv
    Or provide more info on your issue

  • Is there a device I can purchase to enable wifi on my old iMac, like something that plugs into the ethernet port?

    Is there a device I can purchase to enable wifi on my old iMac, like something that plugs into the ethernet port?

    Yes! There are lots of wifi adapters that will work with OS 9 on old iMacs. You can find a comprehensive list of them here:
    http://lowendmac.com/macdan/md09/mac-os-9-wifi.html
    Belkin seems to make a lot of wireless products for OS 9, so that would probably be the name to keep in mind. You can see one of these here:
    http://cache-www.belkin.com/support/dl/belkin_wireless_usb_network_adapter_manua l_os9.pdf
    If you're using an iMac G3, I think those are compatible with AirPort cards, so that's an option too. Good luck!

  • I deleted my Iphoto and need to get it back! I bought this mac book off my sister and have none of the install disks. If there a download or something that I can get to reinstall it?

    I deleted my Iphoto and need to get it back! I bought this mac book off my sister and have none of the install disks. If there a download or something that I can get to reinstall it?

    Depending on the age of your machine and the version of iPhoto, you may be able to download it from the App Store - but you'll need her account details to do so.
    Other than that you'll need to purchase it on the App Store.

  • When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    Open Terminal in Utilties and copy/paste
    This will send the attachment embedded inline. (This works in Snow Leopard, but not sure about Lion. Do a test first. If it doesn't work, just google "send attachment embedded + Lion." You don't actually have to send the message to see how it will appear.)
    defaults write com.apple.mail DisableInlineAttachmentViewing 0
    To reverse the setting, change the 0 to a 1
    However, whether this will work or not will depend on what the e-mail client on the receiver's end does with it.

Maybe you are looking for

  • Should I relate a fact table to a fact table to a dimension table?

    Hi All, I'm designing a dimensional data mart for a client and I'm now forced to think about many-to-many relationships, among other complexities I haven't dealt with until now.  Said client needs to be able to analyze contracts, subcontracts, bids,

  • Nokia 928 receives texts but won't display them

    2 weeks ago everything was great. I put phone on airplane mode for 2 weeks while offshore. Wi-fi only. Got back into port yesterday. I have great signal. I turned off airplane mode. I can make calls. BUT when I send or receive texts, they don't show

  • Safari can't automatically open a new tab on my Home Page?

    OK - I have searched all over the web and this discussion site - are you telling me that outside of using a combination of keyboard shortcuts that Safari - UNLIKE EVERY OTHER BROWSER OUT THERE - can't open a new tab on the user's home page? Let's see

  • Codecs for Adobe Photoshop Elements 10 slideshow music downloads

    I cannot download purchased MP3 files from Amazon to my slideshows in Photoshop Elements 10. It says the computer does not have the proper codec to download the file. How do I resolve this?

  • Why don't RAW files from iPhoto open in RAW CS5?

    I have dragged RAW files into Photoshop from iPhoto and they appear the same as the .jegs.  Also, in the dropdown camera info panel, there is no info other than RAW and the file name:(  I have a Nikon D5000 camera and am using OSX 10.6.6  All updates