Thread Status:
Not open for further replies.
  1. DeMacca Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Jan 22, 2014
    Messages:
    966
    Trophy Points:
    24,140
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +326
  2. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    I want to apply :D
     
  3. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    Lol the second i press enter ;-;
     
    #23 DarthLauren03, Sep 11, 2014
    Last edited: Sep 11, 2014
  4. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    could i enter or..
     
  5. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
  6. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    Thank you so much! :D
     
  7. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
    You are very welcome be sure to look tomorrow for the new question!
     
  8. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    Ok i will! :)
     
  9. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
    I do apologize for taking so long to post the question today! I just go mod so I am a bit busy!
    First question for the quiz!

    Evaluate:
    int x=3; int y=18; double z =9.5 double w=3.5
    (x%y+z)/w


    You have 24 hours to respond
     
  10. Emau Anti-PVP Miner
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Nov 9, 2012
    Messages:
    1,536
    Trophy Points:
    50,410
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +692
    I may be wrong. :p

    Problem:

    int x=3; int y=18; double z =9.5 double w=3.5
    (x%y+z)/w


    Answer:
    _______
    7.857142

    Work:

    (3%18+9.5)/3.5
    3 divided by 18 = 0 with an 18 remainder
    (18+9.5)/3.5
    27.5/3.5
    7.857142...
     
    #30 Emau, Sep 12, 2014
    Last edited: Sep 12, 2014
  11. DarthLauren03 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 20, 2014
    Messages:
    75
    Trophy Points:
    20,340
    Gender:
    Female
    Ratings:
    +75
    Guess xD
    so
    int x=3; int y=18; double z =9.5 double w=3.5
    (x%y+z)/w
    I did 3 divided by 18 with 18 as the remainder
    (18+9.5)+3.5
    27.5/3.5
    7.857142....
    how did i get the same thing o.o
    no copy
    took me like 30 minutes...
     
  12. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
    I will be posting the answer tomorrow and adding a new question. My apologies for lack of posting on this thread!
     
  13. Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️

    Joined:
    Aug 16, 2013
    Messages:
    2,193
    Trophy Points:
    51,590
    Gender:
    Male
    Ratings:
    +1,017
    int x=3; int y=18; double z =9.5 double w=3.5
    (x%y+z)/w
    (18+9.5)+3.5
    27.5/3.5
    7.857142
     
  14. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
    Ok! So the answer to the problem is:

    7.85714

    The following people are adavancing to the next round:
    @Emau
    @minecraftninja05
    @DarthLauren03

    Everyone else failed to respond therefore they are eliminated from the contest.

    Next Problem:
    Suppose x, y and z are int variables and w and t are double variables. What is the value assigned to each of those variables after the last statement executes?
    x = 38;
    y = x - 10
    x = 2 * x + y - 3;
    z = y % (x+ 2);
    w = 3.0 * y + z + 6.5 - 7 % 3;
    t = x / 4.0 + 17 / 4 - y % y;



    You have 24 hours to respond :)
     
    #34 MonsterOmen, Sep 15, 2014
    Last edited: Sep 16, 2014
  15. Emau Anti-PVP Miner
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Nov 9, 2012
    Messages:
    1,536
    Trophy Points:
    50,410
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +692
    I may be wrong.

    While X was 38, we never defined x. Please remember that in C++ all identifiers are case sensitive.

    If you meant x=38 then:

    38
    38-10=28
    76+28-3=101
    28%103=75
    84+81.5-1=164.5
    25.25+4.25-0=29.5

    x=101
    y=28
    z=75
    w=164.5
    t=29.5
     
  16. MonsterOmen Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Apr 8, 2014
    Messages:
    468
    Trophy Points:
    20,840
    Gender:
    Male
    Ratings:
    +98
    Aye I remember @Emau just a typo on my part :)
     
  17. Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️

    Joined:
    Aug 16, 2013
    Messages:
    2,193
    Trophy Points:
    51,590
    Gender:
    Male
    Ratings:
    +1,017
    38
    38-10=28
    76+28-3=101
    28%103=75
    84+81.5-1=164.5
    25.25+4.25-0=29.5
     
  18. alpert3925 Builder
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 17, 2012
    Messages:
    1,230
    Trophy Points:
    50,660
    Gender:
    Male
    Ratings:
    +1,086
    Care to elaborate on how you got that? Or are you just copy/pasting emau's work.
     
  19. Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️

    Joined:
    Aug 16, 2013
    Messages:
    2,193
    Trophy Points:
    51,590
    Gender:
    Male
    Ratings:
    +1,017
    I did the first 4 in my head/on paper, the last 1 I had help with, all I did was copy the format no answers(which is allowed but unfair) please don't comment unless useful as you are not in this and it does you no good.
     
  20. alpert3925 Builder
    Builder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 17, 2012
    Messages:
    1,230
    Trophy Points:
    50,660
    Gender:
    Male
    Ratings:
    +1,086
    I was just wondering as I would love to learn how to do it. Mind teaching me?
     
Thread Status:
Not open for further replies.