| | |
HELP! How do you make an Algorithmic loop?
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Thread Solved |
0
#11 Oct 8th, 2009
PDL is program design language. It involves no actual coding just writing words that describe what you want a program to do. This is pretty much what you did in your first post. Theb you take the words and turn it into computer code. I take it this is where you are stuck.
Check out my new band URL on facebook. I'm the bass player. :) Become a fan and leave comments if you like.
URL on facebook!
URL on facebook!
•
•
Join Date: Sep 2008
Posts: 1,606
Reputation:
Solved Threads: 205
0
#12 Oct 8th, 2009
You're going to have to choose a language and begin learning the basics of that language. Regardless of what language you choose, you will have to learn about loops such as for loops, while loops, do while loops, etc. And of course, if statements, if else statements, etc. Once you learn these constructs you won't have so much trouble with this problem.
Out.
0
#13 Oct 8th, 2009
A c++ program to solve your problem can be done very simply.
First declare an array of size 10
then use a for loop to obtain a number for each of the 10 positions of the array.
Finally add all of the elements in the array by using the plus operator.
This is an easy way to solve your problem.
First declare an array of size 10
int a[10];
for(int i = 1; i<=10; i++)
{
cout<<"enter number "<< i<<endl;
cin>>a[i];
} int sum=a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7]+a[8]+a[9]+a[10];
cout<<"sum = "<<sum; Check out my new band URL on facebook. I'm the bass player. :) Become a fan and leave comments if you like.
URL on facebook!
URL on facebook!
1
#15 Oct 9th, 2009
I just gave some parts to help the OP get started. He needs to figure out how to use if statements to check illegal inputs and how to find the smallest number in the array. At the very least I introduced topics such as arrays that the OP can do further research to learn more about. Sorry if the post was bad.
Check out my new band URL on facebook. I'm the bass player. :) Become a fan and leave comments if you like.
URL on facebook!
URL on facebook!
•
•
Join Date: Oct 2009
Posts: 11
Reputation:
Solved Threads: 1
0
#16 Oct 13th, 2009
Grn Xtrm gave a very good start here and I think it is your time to do your part. I suggest you research and read more on your preferred programming language to use.
Good luck!
Good luck!
EXE Stealth - Protect exe files against cracking, hacking with serial managment and more.
EXE Bundle - Bundle more exe files in one startable file.
EXE Bundle - Bundle more exe files in one startable file.
![]() |
Similar Threads
- Print Prime Numbers(using for loop) (C)
- Can't jump out of loop (C)
- making the program to loop again (C)
- Java Dummie Needs Loop Help (Java)
- loop help (C++)
- trying to make a "Do While" loop; loop (C++)
- Replace repititious code with a loop? (Visual Basic 4 / 5 / 6)
- Help w/ for loop. (C++)
Other Threads in the Computer Science Forum
- Previous Thread: how does computer engineering differ from software engineering?
- Next Thread: how to use fingerprint scanner with php program
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware conversion csc data dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy extensions floatingpoint foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws lsmeans mainframes marketing mining mobileapplication netbeans networking news os p2p piracy piratebay programming rasterizer research sas science security sex simulation software spying sql study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment uk virus warehouse ww2






