Well as you may know I'm learning C#.. and I'm still a beginner.. practicing console applications, I know arrays, arraylists, etc.... well I know quite some tricks... and I would not mind learning some more. So do you have any ideas for some simple quick Console applications? They might even be useless.. I just want to practice.
Thanks
Need ideas
Started by TcM, Apr 12 2008 10:06 AM
36 replies to this topic
#1
Posted 12 April 2008 - 10:06 AM
|
|
|
#3
Posted 13 April 2008 - 05:20 AM
If you're limited to console applications, here's a few to start you off that work using a command line interface:
1. Prime Number Generator (user types in lower and upper numbers, and program calculates prime numbers between it)
2. RSS Headline (gets latest headline from an RSS feed and displays title, description and link)
3. Password Generator (generates memorable passwords from key words, of a set length - could also store them for an extra challenge...)
Try these out for size - presumably you're using the .NET Framework, and I've accomplished all of these using them, but if you need any help or anything, just ask!
Xav
1. Prime Number Generator (user types in lower and upper numbers, and program calculates prime numbers between it)
2. RSS Headline (gets latest headline from an RSS feed and displays title, description and link)
3. Password Generator (generates memorable passwords from key words, of a set length - could also store them for an extra challenge...)
Try these out for size - presumably you're using the .NET Framework, and I've accomplished all of these using them, but if you need any help or anything, just ask!
Xav
#4
Posted 13 April 2008 - 05:23 AM
#5
Posted 13 April 2008 - 09:35 AM
@R-G: Thanks I will look into that
@Xav: Thanks, I done the prime number thing, but not in a range... you input a number and then if the number is not a prime it tells you 'It's not prime it's divisible by 5' for example.
I have no idea how to do the RSS one.. and I'll look into the password gen one.
@Xav: Thanks, I done the prime number thing, but not in a range... you input a number and then if the number is not a prime it tells you 'It's not prime it's divisible by 5' for example.
I have no idea how to do the RSS one.. and I'll look into the password gen one.
#6
Posted 14 April 2008 - 10:28 AM
OK. For the prime number 'thing', try a loop that cycles through all the numbers between the given range. You can then test each one. For an extra thrill, see if you can find the way that uses the least system resources.
Have a go at the password generator. However, the RSS Headline one is not too difficult, and if you know the method, you can use it to download absolutely anything off the internet and load it into your application.
If you need any help with it, just ask. (Hint: Try the System.Net namespace)
Have a go at the password generator. However, the RSS Headline one is not too difficult, and if you know the method, you can use it to download absolutely anything off the internet and load it into your application.
If you need any help with it, just ask. (Hint: Try the System.Net namespace)
#7
Posted 15 April 2008 - 05:00 AM
Hmm.. Ok I'll give it a try when I have sometime.. because in a few days I'm going to have the programming test of C#.. and we have to make a very difficult program (A hotel system with clients, booking, search and edit functions, reports etc....) after that I'll look more into these.
#9
Posted 15 April 2008 - 01:40 PM
Well.. that's not required... We will just use arrays, and once the program is closed, everything will be lost.. we will not save anything to a file.. be barely can create that program in 2 to 3 hours... saving the data would require much more coding and time IMO.
Dang it's gonna be hard, time is limited!
Dang it's gonna be hard, time is limited!
#10
Posted 15 April 2008 - 09:05 PM
"TcM" said:
we will not save anything to a file.. [...] saving the data would require much more coding and time IMO.
#11
Posted 16 April 2008 - 06:02 AM
No text files... nothing, we will just store the data in arrays (when program is closed everything will be lost)
#12
Posted 16 April 2008 - 06:04 AM
Yes, I understood that, but why will you store the data in arrays? Why not implement some database functionality in the program, when it doesn't require much effort to do so.


Sign In
Create Account


Back to top









