I'm new to programming, and am trying to do what I believe must be a very simple I/O project. I'm trying to have the user input a word, that correlates with a number.. in more detail:
I need to create a function, that does a little math. Based on what activity the user performs, I want it to act a multiplier, and have the output be that multiplied number. More importantly, instead of the user entering the multiplier itself, I want them to input the name of the activity.
So if they enter swimming, that multiplies the number by 5. If they enter hiking, it multiplies the number by 4. If they enter napping, it multiplies it by 0, etc.
It sounds simple enough, but I can't find any information on how to do it!