In order to type certain accent marks in Spanish or Portuguese and to use the correct punctuation ( question marks & exclamation marks,etc…) you must either learn some “codes”  (Alt+ctrl) or set up your computer to US International. The choice is yours. I’ll suggest some links for Portuguese and Spanish languages, feel free to find the option that best  suits you.
It’s important to remember though that if you miss an accent mark or punctuation is not done properly you will have points deducted out of your assignment.