and no they do not match so thats what makes it not valid?
There are a few different places - it's just a matter of which one you are most comfortable with. I personally like GCC but I'm a Linux guy. Some people like the Bloodshed compiler, I've seen Turbo C++ around, and there is always Visual C++.
Yep, the types are invalid - an integer type cannot hold a character type.
Nope - this is another issue. By putting it in quotes, you're saying 'the letters that make up the string departmentCode, ' so these are characters as well.
h. yourRate = departmentCode not valid because an integer type cannot hold a character type?
Ha, this is your homework, but you are doing well so far ;). Read up on 'double' type as well. If there is one you're confused about, put it in the compiler - it will spit out the answer right away, then you just have to figure out why. If you're still confused, post the line you tried, and the error.
Comment