I am new member to the site and new to the C++ language--or any language for that matter! Anyways, I don't have any prior knowledge to programming as well. I picked up two introductory books and have been messing around. I can make the famous "Hello World!" program (Just to give you an idea what level I'm at).
So now I am making another beginner program that will give you the money earned at work after taxes. The program runs without error but I think its giving me the wrong calculations and I cant find out where I made the error. Here is my code. Any help is highly appreciated!
Correct.
Also, there's nothing wrong with declaring them with the other variables. Just don't initialize them with anything that includes 'hoursWorked' since 'hoursWorked' is only assigned a value at line 18.