Thread: "Computer Science" Science Project

  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Texas
    Posts
    103

    "Computer Science" Science Project

    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

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    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

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  4. #4
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    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

  5. #5
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    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;}

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. need some help with computer science project...
    By Alvin in forum C Programming
    Replies: 7
    Last Post: 02-03-2005, 08:57 PM
  3. Replies: 12
    Last Post: 05-14-2003, 01:00 AM