Posted: Sun Nov 14, 2010 5:19 am Post subject: C# Zodiac Signs
I want to make a simple console app where you type your date of birth and it will tell you your zodiac sign.
This will be the first program i ever try to make so ill need a lot of help. I've read books and watched some tutorials but people say the best way to learn programming is to go ahead and start on a project thats simple.
So can anyone give me any tips on how i would start this application? _________________
The first step in any program is to figure out HOW you want to do something, the ideas and not the actual programming. I guess to go about this I would keep two parallel arrays, one with ranges of dates in order and another with the signs that these ranges represent.
So you would need a method that takes the input and finds out which range in array 1 it falls in. Then that position in array 2 is the sign. _________________
In that case just use a linear search to find all of the ranges that it falls into (inclusive to catch the edges) and return all of the positions. Then, you have all of your signs _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum