Hi Cristiene,
First, a couple of suggestions:
If you open the Help system in Mathematica and search for "Virtual Book" you will find a very nice introduction to Mathematica. It is really worth spending some time with it.
Also, if you have trouble with a built-in function, highlight it and press F1. The Help will go right to it.
But there are a lot of helpful people here in the community as well, and they all love Mathematica. The best thing is to read
How to Post. This will tell you how to post your code in a code block or attach notebooks so people who want to reply can cut and paste your code into Mathematica to try it.
Concerning your plot:
f[x_] := x Cos[1/x]
Plot[f[x], {x, 0, Pi}]

Notice that both Cos and Plot are capitalized. Mathematica is case sensitive, and all built-in functions are capitalized. Your symbols and functions should begin with lower case, to avoid conflict.
Best regards,
David
PS: I see now some earlier responses which I duplicated. The dashboard and forum on my laptop is approximately 1 hour behind the forum as viewed on my IPad. I suspect Relativistic effects. I will try to adjust their relative velocities.