Search:

Type: Posts; User: ferfy

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    838

    Need some hints, not sure how to do this

    Given an amount less than $1.00, compute the number of quarters, dimes, nickels, and pennies needed.

    so i'd need a variable for quarters, dimes, nickels, & pennies. and another variable..... not...
  2. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    yeah that's what i was gonna do.... but i've been...

    yeah that's what i was gonna do.... but i've been up all night and it's 6am so i can't be bothered to revise it again tonight :/

    but thanks again for your help :)
  3. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    Or i could just remove the exclamation mark :P...

    Or i could just remove the exclamation mark :P hehe
  4. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    my bad..... still was bugged... here's the new...

    my bad..... still was bugged... here's the new fix:

    [C++] grade.cpp - Pastebin.com




    #include <iostream>
    #include <string>
    int main()
  5. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    ah didn't know i could do that :D hahahaha ...

    ah didn't know i could do that :D hahahaha

    here's the simplified code:


    #include <iostream>
    #include <string>

    int main()
  6. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    Final Code: [C++] grade.cpp - Pastebin.com...

    Final Code:
    [C++] grade.cpp - Pastebin.com

    Bug free :) now time for a smoke


    #include <iostream>
    #include <string>

    int main()
  7. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    thanks oogabooga.... final code: #include...

    thanks oogabooga.... final code:


    #include <iostream>
    #include <string>

    int main()

    {
  8. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    i indent 1 level per if or loop...... same as...

    i indent 1 level per if or loop...... same as you.. idk what you mean... b/c that's exactly what i'm doing..... ?!?!?!?


    modified the code a bit, works better, but still wrong output.... 1-3...
  9. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    test input: 71, expected output: C- Actual...

    test input: 71, expected output: C-
    Actual output: -----


    Another example: test input: 50 expected output: F+
    actual output: You scored an F
    -+-+-+-+
  10. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    i dont wanna argue about coding style... here's...

    i dont wanna argue about coding style... here's the updated code, it compiles fine, but for some reason the outputs wrong.... WHY DO MY POSTS KEEP NOT SHOWING UP/DELETED? WTF



    #include...
  11. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    Dont wanna argue about style....anywho this is...

    Dont wanna argue about style....anywho this is the updated code:



    #include <iostream>
    #include <string>

    int main()

    {
  12. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    I dont wanna argue.... anywho yeah i think it...

    I dont wanna argue.... anywho yeah i think it needs to be an integer and i need to use modulus to get the 2nd digit
  13. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    that's a matter of opinion and style, i dont like...

    that's a matter of opinion and style, i dont like ur indenting style, i like mine -_-

    also, i guess it's because strings cant be processed as numbers... -_-
    although i tried a character array cuz...
  14. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    This is what i got so far... not sure why it's...

    This is what i got so far... not sure why it's not compiling.... or if it's right :/



    #include <iostream>
    #include <string>

    int main()

    {
  15. Replies
    8
    Views
    1,521

    By any chance are you reading "Practical C++...

    By any chance are you reading "Practical C++ Programming"? Cuz that's an exercize in chapter 6...... the chapter i just finished :)
  16. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    if i worked out the logic on how to do it, i...

    if i worked out the logic on how to do it, i wouldn't be asking silly :P

    well i know i need to read the last digit of the variable "grade", and then add + or - to the output, depending, but idk...
  17. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    yeah that'd work, but how would u implement...

    yeah that'd work, but how would u implement lastdigit?
  18. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    i would have to do that for every last...

    i would have to do that for every last digit...... ........ that, isn't there a way to read the last digit, and place a - or + accordingly
  19. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    no idea what intereval and subinterval are

    no idea what intereval and subinterval are
  20. Thread: How to do this?

    by ferfy
    Replies
    33
    Views
    2,598

    How to do this?

    #include <iostream>

    int main()

    {

    int grade;

    std::cout << "Enter your grade %: ";
    std::cin >> grade;
  21. x.x :(

    x.x :(
  22. Is there an irc server/channel for this website?

    ummmm, would really help.... anyone know? I'd like to hop on if there is
Results 1 to 22 of 22