I know that I shouldn't be asking for help with homework. But heres the cituation, I am taking a C# for .net course at a local community college they have it online and only for 8 weeks the instructor gives 4 chapters of reading and 4 assignments due each week. this is not an easy language to learn. i am very new to programming and need help so i don't fail this course. Here is my assignment. I don't want the answer because I do want to learn I just need some guidance. Thanks
Write a function that accepts as input an array of integers, and outputs, in reversed
order, only its elements having odd values. Your Main function should prompt for user input of
those arrays – one at a time, until receiving the input that contains no odd values
Sam HobbsPosted Feb 2, 2011, 5:58 PM
Questions?
Mahesh ChandPosted Feb 2, 2011, 4:37 PM
Mahesh ChandPosted Feb 2, 2011, 4:36 PM
http://www.c-sharpcorner.com/uploadfile/mahesh/workingwitharrays11232005064036am/workingwitharrays.aspx
Here is pseudo code:
Array oddArray = new Array(); // dynamic no fixed length
if (val%2 == 0) else oddArray.Add(val);
oddArray.Reverse();
// Now print odd array
Cassandra BoribounePosted Feb 2, 2011, 4:27 PM
Sam HobbsPosted Feb 2, 2011, 4:23 PM
Do you want the program to read the numbers from one line or from 5 lines? In other words, which one of the following two ways do you want? I think that separate lines would be easier.
1 2 3 4 5
1
2
3
4
5
Cassandra BoribounePosted Feb 2, 2011, 4:02 PM
Sam HobbsPosted Feb 2, 2011, 3:48 PM
Do you know what type of program it is supposed to be or that you intend to write? Is it a console program, a Windows Forms application, an online ASP application or a Silverlight program or something else?