Last year i got this assignment and i havent figured it out since. And im trying to program my de2 board for practice and would like to know what are the codes to do these.
No one here will do your homework entirely... So lets try the other way: start with your work. And when you encounter a specific problem, then ask.