HELP with C++ Programming

Discussion in 'Software' started by training4life, Jan 8, 2006.

  1. training4life

    training4life Sergeant

    Hey guys! Could you help me out? Can anyone please create me a C++ program? As simple as this one...

    #include <iostream>
    #include <cmath>
    using namespace std;
    int main (void)
    {
    double radius, area;
    cout << "Enter radius of circle: ";
    cin >> radius;
    area = 3.14159 * pow(radius, 2);
    cout << "The area is " << area << endl;
    return 0;
    }

    But as not as the same as that one. I'm thinking of a different function. Also... Can you please explain what is the use of that program? Please. I really need it badly!
     
  2. Wookie

    Wookie Sergeant Major

    Thats your friends program right and you want to use it for an assignment but dont want it to look the same?
     
  3. QuickSilver

    QuickSilver Corporal

    You reached that conclusion too?
     
  4. training4life

    training4life Sergeant

    No! No! Never mind!
     
  5. dijitolboy

    dijitolboy Private E-2

    The program calculates the area of a circle where the user specifies the radius. Two different programs that do the same thing won't really look that dissimilar, especially when the task is so simple. Change the variable names.
    There ya go. But...if you NEED to do this, you must be taking a course...and if you can't understand that program, you should drop the course.
     
  6. QuickSilver

    QuickSilver Corporal

    Agreed... and as for changing variable names, when I was at University they 'claimed' (at least) that they had a copy checker. It took each piece of coursework and parsed the source code replacing variable names with tokens. The parsed code was then checked against other students and a percentage relating to how similar each piece was apparently produced.
    I know a couple of students were 'talked to' about copying code so regardless of whether they had something as effective as this they did catch people out.

    In the UK at least plagiarism at a higher academic level is a serious accusation and punishable by expulsion from the academic institution.

    <rant>
    This is also the reason I personally disagree with putting full source code solutions up on the forums for people... If they are having an issue understanding programming or solutions then that should be discussed, rather than doing their homework. If you do someones homework for them they don't learn and then fail to be able to do the next piece of homework.
    Unfortunately, when learning to write code things start off simple and get more complicated. And if you don't master the very basics then what follows is going to be impossible to learn/apply.
    </rant>

    I suspect people would be more willing to help training4life (myself included) if it didn't look so much like someone asking them to do their homework for them...
     
  7. dijitolboy

    dijitolboy Private E-2

    yea, in the states, academic forgery is not taken lightly, either. the program that checks similarity which you described sounds very interesting, indeed. the author of the original thread would do well to remember this, me thinks.
     
  8. goldfish

    goldfish Lt. Sushi.DC

    The use of the program is to teach you how to use a couple of bits of syntax:
    variable declaration
    floating point operations ( +, pow())
    user input/output.

    ;)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds