Jump to content

Need ideas

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
36 replies to this topic

#1
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
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

#2
R-G

R-G

    Programmer

  • Members
  • PipPipPipPip
  • 142 posts
Well, I could list and give you some advices, but I saw this digital article some time ago, so I think its properly to forward it.
Like an angel without a sense of mercy.

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
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
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
R-G, the link you provided seems to be only suited for business / server applications, no? For a learning C# programmer, I'd suggest something ein bisschen kompletter.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
@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.

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
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)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
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.

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It looks like great fun - how are you going to store the data for the clients?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
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!

#10
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts

"TcM" said:

we will not save anything to a file.. [...] saving the data would require much more coding and time IMO.
Have you thought about using a database instead of plaintext-files? It will be much easier, and won't require much code either. I've some good experience with both MySQL and SQLite.

#11
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
No text files... nothing, we will just store the data in arrays (when program is closed everything will be lost)

#12
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
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.