Hi to everyone. It's my first post here and I'd like to get some help.
A friend of mine has 2 (simple for you) problems to solve and she doesn't have a clue (and nether do I).
Prob 1.) Write a code in C++ (visual) that reads from the keyboard integer numbers and saves them at a table (of integer numbers) of two dimensions with n rows and n columns.
Next it should do the folowings:
a) Show the contents of the table on screen
b) Find the biggest number of each row
c) Find the smallest number of each column
d) Find the quantum of the odds and of the evens
e) At the end of the program, it should show all the previous results on screen
Prob 2.) Write a code in C++ (visual) that reads from the keyboard integer numbers and saves them at a table (of integer numbers) of two dimensions with n rows and n columns.
Next it should do the folowings:
a) Show the contents of the table on screen
b) Sort the evens of each row from the smallest to the biggest and the odd of each row from the biggest to the smallest.
e) At the end of the program, it should show the previous result on screen
Shes only knows the basics and "do-while" and "for".
If anyone could help me, I'd be grateful. Please, please, please!!
Thank you in advance.