Hello everyone! I am supposed to do a science project, and I lack of ideas. Can anyone here give me some Ideas that may involve programming with C++??
Thanx in Advance!!
Hello everyone! I am supposed to do a science project, and I lack of ideas. Can anyone here give me some Ideas that may involve programming with C++??
Thanx in Advance!!
Last edited by toonlover; 09-10-2006 at 10:54 AM.
Be easy on me...only 14
Sending a space ship to moon. Write the space ship computer programs in C++.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
A trawl through the board history shows many different programming assignments - pick one of them?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Design an elevator program, or even an alarm system for a house. They all run on programs, so designing one of your own is entertaining and informal
Create a very badly written C++ program, and study the responses of various fellow programmers selected at random to check it out.
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}
I think you should ask your teacher/instructor for a bit more guidance.
The first thing that comes to mind is some sort of simulation. That is, simulate an experiment. Simulation is done by making random selections/decisions in a loop. A simulation is like a game that plays itself. You can run thousands of simulations much faster than you can try something out a few times in the "real world". If you go to a casino with $100 and play $1 on one roulette number each time, how long does your money last? Out of 100 players what is the average number of plays before running out of money? What's the shortest number of plays? The longest? I don't know if that would count as science or not...
The most common use of computers in science might be for statistical analysis. When your experiment results in massive amounts of data, and you need to make sense of the data. For example, statistical analysis is used to determine if a drug is effective. (Since almost no drug is 100% effective, you need statistical proof.) But, you have to have some statistics background, and you need an experiment that generates some sort of numerical results that need to be analyzed.
Computers can also be used to "control" an experiment. For example, computer can control a rat-feeding system. But, you won't the "hardware" for that, and the programming would be very complicated, even for a simple system...
Last edited by DougDbug; 09-11-2006 at 01:38 PM.