plz, I just want an idea

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2009
Posts: 4
Reputation: Dia.A is an unknown quantity at this point 
Solved Threads: 0
Dia.A Dia.A is offline Offline
Newbie Poster

plz, I just want an idea

 
0
  #1
Apr 25th, 2009
I have completed an OOP course using C++ and each student has been asked to do an end term project, so that they make use of all things that was learned, like ( operator oveloading, inheritance , polymorphisms, files, templates) and every thing that can support the project.
I want just some ideas, i thought of making a simple library system, but i think there are many other things I can make use of OOP more than in a library , can you tell me of some please?
I want a project that makes me deeply understand every thing in OOP

please give me many ideas
I am waiting for your replay
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 119
Reputation: JugglerDrummer is an unknown quantity at this point 
Solved Threads: 15
JugglerDrummer's Avatar
JugglerDrummer JugglerDrummer is offline Offline
Junior Poster

Re: plz, I just want an idea

 
0
  #2
Apr 25th, 2009
Just think of something in real life that has a lot of objects interacting together, as that's what you want in the program. You could do a poker game, fight-a-monster game, a catalog of libray books, lots of stuff. Programming is supposed to mimick the real world, so think of a situation with a bunch of objects.
good suggestions ---> these neat ideas.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: plz, I just want an idea

 
0
  #3
Apr 25th, 2009
One of my favorite projects I worked on was a small RPG type game.

I can't remember it all, but I had classes that were derived from base classes.. these were the fighters. Elvaan, Hume, etc. And each class had different traits... (Elvaan might have attack +10%, Hume might have a +10% chance of blocking, something else might have a +5% chance of attacking twice, etc.). Each race had different starting attributes, attack, strength, magic attack, HP, etc.

Then I put them all into a main() file for the fighting simulation. Each round would start a battle between 2 races. Main() would call the battle() function, which would setup the possibilities and call a random() function multiple times to determine who would attack, how much they would attack for and if anyone had the chance of blocking how often, etc. This would continue to loop, requiring the user hit Enter between every round, until one of the creatures was defeated.

Of coarse it took multiple runs to figure out if I had made one race too powerful or one race not powerful enough, which I then went back and made adjustments to the attributes.

Needless to say, this was an extremely fun exercise. Allows for a ton of creativity.
Last edited by Duki; Apr 25th, 2009 at 8:25 pm.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: plz, I just want an idea

 
0
  #4
Apr 26th, 2009
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 793
Reputation: siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of 
Solved Threads: 135
siddhant3s's Avatar
siddhant3s siddhant3s is offline Offline
Master Poster

Re: plz, I just want an idea

 
0
  #5
Apr 26th, 2009
In some books I read:
Elevator Simulation:: The program will simulate elevators. The user pushes a button ( by pressing a number key on the keyboard. Number indicates the floor on which he is) and then the elevator decides its path so that it could fill up requests of most of the users.
You model an elevator as an object.
Siddhant Sanyam
(Not posting much)
Migrate to Standard C++ :When to tell your C++ Code is Non-Standard.
Please Read before posting: How To Ask Questions The Smart Way
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: plz, I just want an idea

 
0
  #6
Apr 26th, 2009
Actually you can write an object oriented program for nearly (why am I using 'nearly' here) everything you can simulate (inspiration enough now, I think ) ...
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: plz, I just want an idea

 
0
  #7
Apr 26th, 2009
Originally Posted by tux4life View Post
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s)...
Oooh I like that one, That sounds fun.
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 4
Reputation: Dia.A is an unknown quantity at this point 
Solved Threads: 0
Dia.A Dia.A is offline Offline
Newbie Poster

Re: plz, I just want an idea

 
0
  #8
Apr 29th, 2009
Originally Posted by tux4life View Post
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
yes this sounds very creative ,but i think i need strong knowledge in computer architecture,don't i?
if any one have information and tips for this project please tell me.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 4
Reputation: Dia.A is an unknown quantity at this point 
Solved Threads: 0
Dia.A Dia.A is offline Offline
Newbie Poster

Re: plz, I just want an idea

 
0
  #9
Apr 29th, 2009
Originally Posted by tux4life View Post
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
this sounds very creative ,but i think i need strong knowledge in computer architecture,don't i?
if any one have information and tips for this project please tell me.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: plz, I just want an idea

 
0
  #10
Apr 29th, 2009
Originally Posted by Dia.A View Post
but i think i need strong knowledge in computer architecture,don't i?
That depends on how detailed you want to implement it, bu a basic knowledge is required of course ...
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC