I know this is a very basic question but it is driving me crazy right now. I Am writing a program to determine the pay of an A, B, or C level author. The user would input the letter of the level and the number of words for the story. The Pay is calculated from there.
**How do I assign the users input to different variables? It shouldn't matter if the letter is capitalized or not. Would I just use a simple if statement?
The code is just an example what I thought assigning the input would look like... skillLvl is the users input
1 2 3 4 5 6 7 8 9
void lvlDetermination(float skillLvl) {
if (skillLvl == A || a)
skillLvl = lvlC;
elseif (skillLvl == B || b)
skillLvl = lvlB;
elseif (skillLvl == C || c)
skillLvl = lvlC;
else
cout << "Please enter the Correct Skill Level Between A and C " << endl;
OK, I believe I understand what you are are saying. .. So what about the other two Character values? (B, C) Do I have to declare a different variable for each of them or can all input be through "char skillLvl"? Only one will be in use at a time since One character is considered the Authors skill level. So the only time there will be an additional Character is when the program is run again.