Welcome to Dream.In.Code
Click Here
Getting C++ Help is Easy!

Join 117,577 C++ Programmers for FREE! Ask your question and get quick answers from experts. There are 2,196 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Any Good Program

 
Reply to this topicStart new topic

Any Good Program, based on Looping and Conditional statements?

angel0lz
post 20 Jul, 2008 - 02:36 AM
Post #1


New D.I.C Head

*
Joined: 19 Jul, 2008
Posts: 8

im not really asking for a code here guys.. i just want your suggestion.. we have a project which needs to have looping and conditional statements in it.. lets say we are still beginners.. what good programs can you suggest? i was thinking like: word counter, converter.. can you suggest some good programs? funny thing was me thinking of a game program like sudoko, then i found it here then i didnt understand the code.. haha

any suggestions will be helpful guys, i need to get this done by a week.. remember looping and conditional statements must be used as much as possible in the program..

expecting your helpful suggestions.. biggrin.gif

This post has been edited by angel0lz: 20 Jul, 2008 - 02:37 AM
User is offlineProfile CardPM

Go to the top of the page


red_4900
post 20 Jul, 2008 - 04:09 AM
Post #2


D.I.C Addict

****
Joined: 22 Feb, 2008
Posts: 669



Thanked 8 times
My Contributions


QUOTE
Some challenges you could try...

1) Create a program that displays various shapes using asterisks. Create a rectangle, right triangle facing left and one facing right, an equilateral triangle and most of all a diamond. Do these with only for loops.

2) Using only a while loop, create a program that asks a user to specify multiple integers and adds them up until it reaches a sentinel value like 9999. Divide this sum by the number of integers that were inputted by the user to get the average. Example the user enters... 4, 3, 2, 3 = 12 / 4 terms = average of 3.

3) With only two for loops, create a bubblesort algorithm that has a fixed number of passes and no longer takes into account values that have already been properly sorted (that is values that have already been bubbled up).


this should be enough I think. smile.gif
User is offlineProfile CardPM

Go to the top of the page

kapax
post 20 Jul, 2008 - 10:10 AM
Post #3


New D.I.C Head

*
Joined: 2 Jul, 2008
Posts: 38



Thanked 1 times
My Contributions


I personally like projecteuler.net.

but it requires quite some experience in creating good algorithms
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 20 Jul, 2008 - 10:50 AM
Post #4


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,812



Thanked 27 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


If you want something that's still on the easy side but relatively tougher, then you can try creating a Sudoku puzzle solver.
You'll need loads of conditional and looping statements for this one.
User is offlineProfile CardPM

Go to the top of the page

angel0lz
post 21 Jul, 2008 - 02:33 PM
Post #5


New D.I.C Head

*
Joined: 19 Jul, 2008
Posts: 8

can you guide me to the right path sir? i mean about your suggestion, i dont get it.. you mean it solves soduku? hmmm that's quite hard for my experience.
User is offlineProfile CardPM

Go to the top of the page

Delta_Echo
post 21 Jul, 2008 - 10:08 PM
Post #6


D.I.C Regular

***
Joined: 24 Oct, 2007
Posts: 400


My Contributions


What you could do is search for C++ forums, and find help requests and solve them. That will give you a lot of crap to do.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 10/7/08 09:00PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month