Well the assignment goes like this. I need to get user input for 3 things....
Employee ID (integers)
Number of hours worked (double)
Rates per Hour (double)
Then make it Display the following things
Employee ID
Hours Worked
Rate Per Hour
Gross Salary
and the Program header is required. <---- What is this?
Author's Name
Program Name
Date
Some problems that I am having is that when you include letters for the Empoyee ID, the program will show wierd numbers. Also if you include the $ sign for the rate per hour it also show's wierd numbers. Also if you put alot of numbers for the Employee ID, like 90321930219301 it also messes up the numbers.
The Program Header is simply a few lines of comment that include: Author's Name (your name), Program Name(the name of the file/program), Date (program was created).
As far as your problem with displaying random numbers, I am not having that problem with your code at all (I am using Dev-C++) when using integers. Using letters (which are not integers) will give you this problem. If you need to include letters then look into making EmployeeID a String.
The dollar symbol will give you that error since it is not actually part of the double number. You can get it to print a '$' symbol by just adding the $ before print your variables.
On a side note, variable names typically use camelCasing, and start with a lowercase letter. While this is not required, it is considered good coding practice to follow that. Classnames typically start with UpperCase to make them easier to differentiate in larger code.
Well the thing is what if the person who is working is not getting paid in dollars but in euros? So I need to make sure that if they include the dollar sign or the euro sign that it will not mess up. And if I just add it in before the print variables it will just be one kind of dollar.