קהילות פורומים, הורדות, יעוץ ותמיכה


אשכולות דומים

  1. [אתגר] בנה את המפרט-חדש| 130 נק' לזוכה!
    על ידי Someone Awesome בפורום מפרטי מחשב
    תגובות: 2
    הודעה אחרונה: 25-08-2009, 23:24
  2. [תזכורת] אתגר בנה את המפרט!!!
    על ידי Liberta בפורום מפרטי מחשב
    תגובות: 3
    הודעה אחרונה: 17-05-2009, 19:09
  3. אתגר חדש (בחורות)
    על ידי A.M בפורום חתימות וסמלים
    תגובות: 2
    הודעה אחרונה: 13-09-2005, 19:01
נושא נעול
מציג תוצאות 1 עד 10 מתוך 10

[אתגר]בנה את המחשבון

  1. #1
    משתמש משקיע האוואטר של lir the king
    שם פרטי
    ליר
    תאריך הצטרפות
    04/2009
    הודעות
    2,997
    לייקים
    1
    נקודות
    9
    משפט מחץ
    קטן קטן,אבל נכנס לכל חור
    מין: זכר

    ברירת מחדל [אתגר]בנה את המחשבון

    בנה את המחשבון !
    אפשר לתכנת בכל שפה .
    אין מגבלות מיוחדות .
    חובה להעלות קוד מקור .
    פרסים:
    מקום ראשון:150 נקודות .
    מקום שני:100 נקודות .

    להגיש פה את המחשבונים שהכנתם .
    בהצלחה
    נערך לאחרונה על ידי lir the king; 10-12-2009 בשעה 21:47.

  2. קישורים ממומנים

  3. #2
    משתמש ותיק האוואטר של U2tr4x
    שם פרטי
    ::::::::::
    תאריך הצטרפות
    08/2006
    הודעות
    6,259
    לייקים
    1
    נקודות
    1
    משפט מחץ
    sup my nigga?
    מין: זכר

    ברירת מחדל

    מחשבון? תן אתגר אמיתי

  4. #3
    האוואטר של MartiNi
    תאריך הצטרפות
    02/2008
    הודעות
    15,202
    לייקים
    654
    נקודות
    2,600
    משפט מחץ
    Schrodinger's cat walks into a bar... and doesn't.
    מין: זכר

    ברירת מחדל

    ציטוט נכתב במקור על ידי U2tr4x צפיה בהודעה
    מחשבון? תן אתגר אמיתי
    מה נעשה שבFX P זה האתגר עכשיו
    ציטוט נכתב במקור על ידי The Picture of Dorian Gray" By Oscar Wilde"
    To me, beauty is the wonder of wonders. It is only shallow people who do not judge by appearances. The true mystery of the world is the visible, not the invisible.


  5. #4
    משתמש ותיק
    שם פרטי
    אלירן
    תאריך הצטרפות
    04/2007
    הודעות
    9,272
    לייקים
    1
    נקודות
    0
    משפט מחץ
    "יש בחורות רואים כסף שוכחים...."
    מין: זכר

    ברירת מחדל

    C++

    קוד:
    #include <iostream.h>
    #include <conio.h>
    int mc(int x, int y) //Multiply two numbers
    {
        cout <<"\n\n"<< x <<" times "<< y <<" equals ";
        return (x*y);
    }
    int ac(int a, int b) //Add two numbers
    {
        cout <<"\n\n"<< a <<" plus "<< b <<" equals ";
        return (a+b);
    }
    int sc(int z, int c) //Subtract two numbers
    {
        cout <<"\n\n"<< z <<" minus "<< c <<" equals ";
        return (z-c);
    }
    int dc(int o, int t) //Divide two numbers
    {
        cout <<"\n\n"<< o <<" divided by "<< t <<" equals ";
        return (o/t);
    }
    void calc(char choice)
    {
        int on,tw,thr;
            if (choice == '+') //This whole block checks what the user wants to calculate, and refers to the proper routine to calculate it.
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces,";
            cout<<"that you want to add."<<endl;//print instructions for the user
            cin>>on;//Get the value of variable on
            cin>>tw;//Get the value of variable tw
            thr=ac(on,tw);//Get the sum of on and tw, and assign that value to thr
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";//Print a thank you message
        }
        else if (choice =='-')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to subtract."<<endl;
            cin>>on;
            cin>>tw;
            thr=sc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";
        }
        else if (choice =='*')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to multiply."<<endl;
            cin>>on;
            cin>>tw;
            thr=mc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";
        }
        else if (choice =='/')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to divide."<<endl;
            cin>>on;
            cin>>tw;
            thr=dc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator";
        }
        else
        {
            cout<<"\nPlease reenter that value.\n\a";
            cin>>choice;
            calc(choice,);
        }
    }
    void main()
    {
        clrscr();
        int one, two, three;
        char choice;
        while (choice != 'e')
        {
            cout<<"\nPlease enter +,-,*, or / and then two numbers,\nsepperated by spaces, that you wish to\nadd,subtract,multiply,or divide.\nType e and press enter to exit.";
            cin>>choice;
            if (choice != 'e')
            {
                calc(choice);
            }        
        }
    }
    Two years he walks the earth. No phone, no pool, no pets, no cigarettes. Ultimate freedom. An extremist. An aesthetic voyager whose home is the road…Ten days and nights of freight trains and hitchhiking bring him to the Great White North. No longer to be poisoned by civilization he flees, and walks alone upon the land to become lost in the wild. - Alexander Supertramp May 1992

    כלים שימושיים:
    Everest | CPUZ | Java |Flash |NOD32


  6. #5
    משתמש כבוד
    משתמש כוסון
    האוואטר של sagivZ
    תאריך הצטרפות
    06/2009
    גיל
    31
    הודעות
    8,226
    לייקים
    5
    נקודות
    0
    משפט מחץ
    The one & the only
    מין: זכר

    ברירת מחדל

    import java.util****anner;


    public class calaulator
    {
    public static void main(String arg0[]) {
    String a=null,b=null,c=null;
    Scanner in = new Scanner(System.in);


    String[] actions={"+","-","*","/"};
    boolean again = true;
    while (again) {
    a=b=c=null;
    System.out.println("WELCOME TO THE CALCULTOR");
    System.out.println("------------------------");

    while (a==null) {
    System.out.println("Enter the first number..");
    a=in.next();
    try {
    Double.parseDouble(a);
    } catch (Exception e) {
    System.out.println("PLEASE ENTER A NUMBER!!!");
    a=null;
    }
    }
    while (c==null) {
    System.out.println("PLEASE ENTER THE ACTION YOU WOULD LIKE TO PREFORM: + , - , * , /");
    c=in.next();
    boolean temp=false;
    for (String action: actions){
    if (c.equals(action)) temp=true;
    }
    if (!temp) {
    System.out.println("PLEASE ENTER ONE OF THE FOLLOWING ONLY! + , - , * , /");
    c=null;
    }
    }




    while (b==null) {
    System.out.println("Enter the second number..");
    b=in.next();
    try {
    Double.parseDouble(b);
    } catch (Exception e) {
    System.out.println("PLEASE ENTER A NUMBER!!!");
    b=null;
    }
    }
    double result=0;
    if (c.equals("+")) {
    result=Double.parseDouble(a)+Double.parseDouble(b);
    System.out.println(""+a+"+"+b+"="+result);
    }
    else if (c.equals("-")) {
    result=Double.parseDouble(a)-Double.parseDouble(b);
    System.out.println(""+a+"-"+b+"="+result);
    }
    else if (c.equals("*")) {
    result=Double.parseDouble(a)*Double.parseDouble(b);
    System.out.println(""+a+"*"+b+"="+result);
    }
    else if (c.equals("/")) {
    result=Double.parseDouble(a)/Double.parseDouble(b);
    System.out.println(""+a+"/"+b+"="+result);
    }


    String strAgain="kldjs";
    while ( (!strAgain.equalsIgnoreCase("y")) && (!strAgain.equalsIgnoreCase("n")) ) {
    System.out.println("IT WAS VERY NICE TO MEET YOU, WOULD YOU LIKE ANOTHER CALCULATION? (y/n)?");
    strAgain=in.next();

    if ((!strAgain.equalsIgnoreCase("y")) && (!strAgain.equalsIgnoreCase("n"))) System.out.println("PLEASE ENTER ONLY y OR n");
    }

    if (!strAgain.equals("y")) {
    again=false;
    System.out.println("Good Bye");
    }

    }
    }

    }
    תגיד איך + הערות לשיפור..



  7. #6
    משתמש משקיע האוואטר של lir the king
    שם פרטי
    ליר
    תאריך הצטרפות
    04/2009
    הודעות
    2,997
    לייקים
    1
    נקודות
    9
    משפט מחץ
    קטן קטן,אבל נכנס לכל חור
    מין: זכר

    ברירת מחדל

    ציטוט נכתב במקור על ידי sagivZ צפיה בהודעה
    import java.util****anner;


    public class calaulator
    {
    public static void main(String arg0[]) {
    String a=null,b=null,c=null;
    Scanner in = new Scanner(System.in);


    String[] actions={"+","-","*","/"};
    boolean again = true;
    while (again) {
    a=b=c=null;
    System.out.println("WELCOME TO THE CALCULTOR");
    System.out.println("------------------------");

    while (a==null) {
    System.out.println("Enter the first number..");
    a=in.next();
    try {
    Double.parseDouble(a);
    } catch (Exception e) {
    System.out.println("PLEASE ENTER A NUMBER!!!");
    a=null;
    }
    }
    while (c==null) {
    System.out.println("PLEASE ENTER THE ACTION YOU WOULD LIKE TO PREFORM: + , - , * , /");
    c=in.next();
    boolean temp=false;
    for (String action: actions){
    if (c.equals(action)) temp=true;
    }
    if (!temp) {
    System.out.println("PLEASE ENTER ONE OF THE FOLLOWING ONLY! + , - , * , /");
    c=null;
    }
    }




    while (b==null) {
    System.out.println("Enter the second number..");
    b=in.next();
    try {
    Double.parseDouble(b);
    } catch (Exception e) {
    System.out.println("PLEASE ENTER A NUMBER!!!");
    b=null;
    }
    }
    double result=0;
    if (c.equals("+")) {
    result=Double.parseDouble(a)+Double.parseDouble(b);
    System.out.println(""+a+"+"+b+"="+result);
    }
    else if (c.equals("-")) {
    result=Double.parseDouble(a)-Double.parseDouble(b);
    System.out.println(""+a+"-"+b+"="+result);
    }
    else if (c.equals("*")) {
    result=Double.parseDouble(a)*Double.parseDouble(b);
    System.out.println(""+a+"*"+b+"="+result);
    }
    else if (c.equals("/")) {
    result=Double.parseDouble(a)/Double.parseDouble(b);
    System.out.println(""+a+"/"+b+"="+result);
    }


    String strAgain="kldjs";
    while ( (!strAgain.equalsIgnoreCase("y")) && (!strAgain.equalsIgnoreCase("n")) ) {
    System.out.println("IT WAS VERY NICE TO MEET YOU, WOULD YOU LIKE ANOTHER CALCULATION? (y/n)?");
    strAgain=in.next();

    if ((!strAgain.equalsIgnoreCase("y")) && (!strAgain.equalsIgnoreCase("n"))) System.out.println("PLEASE ENTER ONLY y OR n");
    }

    if (!strAgain.equals("y")) {
    again=false;
    System.out.println("Good Bye");
    }

    }
    }

    }
    תגיד איך + הערות לשיפור..
    לא חושב שזה שלך .
    ציטוט נכתב במקור על ידי -sUIx צפיה בהודעה
    C++

    קוד:
    #include <iostream.h>
    #include <conio.h>
    int mc(int x, int y) //Multiply two numbers
    {
        cout <<"\n\n"<< x <<" times "<< y <<" equals ";
        return (x*y);
    }
    int ac(int a, int b) //Add two numbers
    {
        cout <<"\n\n"<< a <<" plus "<< b <<" equals ";
        return (a+b);
    }
    int sc(int z, int c) //Subtract two numbers
    {
        cout <<"\n\n"<< z <<" minus "<< c <<" equals ";
        return (z-c);
    }
    int dc(int o, int t) //Divide two numbers
    {
        cout <<"\n\n"<< o <<" divided by "<< t <<" equals ";
        return (o/t);
    }
    void calc(char choice)
    {
        int on,tw,thr;
            if (choice == '+') //This whole block checks what the user wants to calculate, and refers to the proper routine to calculate it.
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces,";
            cout<<"that you want to add."<<endl;//print instructions for the user
            cin>>on;//Get the value of variable on
            cin>>tw;//Get the value of variable tw
            thr=ac(on,tw);//Get the sum of on and tw, and assign that value to thr
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";//Print a thank you message
        }
        else if (choice =='-')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to subtract."<<endl;
            cin>>on;
            cin>>tw;
            thr=sc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";
        }
        else if (choice =='*')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to multiply."<<endl;
            cin>>on;
            cin>>tw;
            thr=mc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator!";
        }
        else if (choice =='/')
        {
            cout<<"You selected "<<choice<<". Please enter two numbers,\nsepperated by spaces, that you want to divide."<<endl;
            cin>>on;
            cin>>tw;
            thr=dc(on,tw);
            cout<<thr<<"\n\n\n\aThanks for using my calculator";
        }
        else
        {
            cout<<"\nPlease reenter that value.\n\a";
            cin>>choice;
            calc(choice,);
        }
    }
    void main()
    {
        clrscr();
        int one, two, three;
        char choice;
        while (choice != 'e')
        {
            cout<<"\nPlease enter +,-,*, or / and then two numbers,\nsepperated by spaces, that you wish to\nadd,subtract,multiply,or divide.\nType e and press enter to exit.";
            cin>>choice;
            if (choice != 'e')
            {
                calc(choice);
            }        
        }
    }
    תן גם הורדה של המחשבון .
    ציטוט נכתב במקור על ידי MartiNi צפיה בהודעה
    מה נעשה שבFX P זה האתגר עכשיו
    זה ממש לא קשור .
    ציטוט נכתב במקור על ידי U2tr4x צפיה בהודעה
    מחשבון? תן אתגר אמיתי
    אין פה מספיק אנשים שיכולים לעשות משהו יותר ממחשבון כרגע .

  8. #7
    משתמש כבוד
    משתמש כוסון
    האוואטר של sagivZ
    תאריך הצטרפות
    06/2009
    גיל
    31
    הודעות
    8,226
    לייקים
    5
    נקודות
    0
    משפט מחץ
    The one & the only
    מין: זכר

    ברירת מחדל

    אחי שלי .... לא משהו אה לא נורא חבר עזר אצת..



  9. #8
    משתמש משקיע האוואטר של lir the king
    שם פרטי
    ליר
    תאריך הצטרפות
    04/2009
    הודעות
    2,997
    לייקים
    1
    נקודות
    9
    משפט מחץ
    קטן קטן,אבל נכנס לכל חור
    מין: זכר

    ברירת מחדל

    ציטוט נכתב במקור על ידי sagivZ צפיה בהודעה
    אחי שלי .... לא משהו אה לא נורא חבר עזר אצת..
    אתה צריך לעשות לבד ולהביא הורדה .

  10. #9
    משתמש מכור האוואטר של 2Moons
    תאריך הצטרפות
    09/2007
    הודעות
    1,999
    לייקים
    1
    נקודות
    402
    משפט מחץ
    שניצל תירס,הטחינה של נאפיס הכי טעימה
    מין: זכר

    ברירת מחדל

    עשיתי מחשבון:

    זה הקובץ sln:

    http://www.f2h.co.il/5682744500227

    תקמפל תדבג ותראה תמחשבון
    נערך לאחרונה על ידי 2Moons; 19-12-2009 בשעה 20:00.

  11. #10
    משתמש כבוד האוואטר של B1ackSn0w
    שם פרטי
    שחף
    תאריך הצטרפות
    11/2007
    גיל
    33
    הודעות
    10,887
    לייקים
    15
    נקודות
    319
    משפט מחץ
    תעשו אהבה ולא מלחמה קונדום יותר זול מחומר נפץ!
    מין: זכר

    ברירת מחדל

    מצטער, האתגר נסגר הוא כבר לא המנהל.
    תכירו את שמוליק, אבא קנה לי

    הוא אוהב במבה, ביסלי ואת עודד מנשה


    ציטוט נכתב במקור על ידי אושרי
    לפני כל יום שהיינו הולכים לישון אבאלה שלי היה בא מרביץ לנו בחורף להריץ דם בגוף כי היה קר זה היה כואב אבל מחמם וגם מרדים

נושא נעול


הרשאות פרסום

  • אין באפשרותך לפרסם נושאים חדשים
  • אין באפשרותך לפרסם תגובות
  • אין באפשרותך לצרף קבצים
  • אין באפשרותך לערוך את הודעותיך


כל הזמנים הם לפי GMT +3. השעה כרגע היא 00:41.
מופעל על ידי vBulletin™ © גרסה 4.1, 2011 vBulletin Solutions, Inc. כל הזכויות שמורות.
פעילות הגולשים
אומנות וגרפיקה
מוזיקה
ספורט
סדרות טלוויזיה
סרטים וקולנוע
קנייה ומכירה
רשתות חברתיות
הבורר 3
פורומי פנאי ובידור
סרטים
סדרות
משחקים
דיבורים
אקטואליה
בעלי חיים
בדיחות והומור
משחקי ספורט
הבורר
מחשבים וטכנולוגיה
תמיכה טכנית
חומרה ומודינג
תוכנות להורדה
סלולארי וגאדג'טים
רקעים למחשב
ציוד הקפי למחשב
אבטחת מידע
תכנות ובניית אתרים
כסף ברשת
אייפון
בריאות ואורח חיים
כושר ופיתוח גוף
דיאטה
צבא וגיוס
יעוץ מיני
מה שבלב
אומנות הפיתוי
יהדות
מיסטיקה ורוחניות
אתאיזם ודתות

נושאים: 2,472,874 | הודעות: 8,173,461 | משתמשים: 315,603 | המשתמש החדש ביותר: upizijoj | עיצוב גרפי: סטודיו עודד בביוף | קידוד: rellect