Search:

Type: Posts; User: anchorblue804

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    9,891

    but i dont understand how it works :)

    but i dont understand how it works :)
  2. Replies
    5
    Views
    9,891

    Plinko Board Program

    I am designing a simple plinko game program. Basically I am stuck on exactly how to make this unfold. How to randomize the odds of where it hits(rand() % 2)???? and how to keep it going and the...
  3. Replies
    3
    Views
    1,059

    Yeah I know, but how do I do that in code? I'n...

    Yeah I know, but how do I do that in code? I'n new ha
  4. Replies
    3
    Views
    1,059

    How to do this?

    This is my code. I have everything done but this requirement. At one point the user inputs to have their results sorted by either "gas" consumption or "total" cost. SO how would I print: If the users...
  5. Need to Finish this Problem, not sure whats next

    So I am designing a simple program. You input a bunch of numbers to compare a hybrid car and its costs vs a normal car and its costs. I am stuck on these two things.

    AS OUTPUTS
    1.A label...
  6. Replies
    3
    Views
    1,011

    How to accept only certain text?

    Here is my code so far. I just can't get the last 3 lines. I need to accept only text that says Total or Gas. How would I do that? I've looked up and read a lot of stuff but everything I tries...
  7. Replies
    2
    Views
    892

    thanks !

    thanks !
  8. Replies
    2
    Views
    892

    Question on While Loop

    Pretty new to programming. It runs but it doesn't display the error message: Please enter a positive number. Any suggestions? This is just the fragment that won't go.


    do
    {
    cout <<"The...
  9. Replies
    10
    Views
    1,965

    How about this? int hybrid_cost = 0; do {...

    How about this?


    int hybrid_cost = 0;
    do
    {
    cout <<"The cost of a hybrid car?" << endl;
    cin >> hybrid_cost;
    }
    while ( ! ( 0 < hybrid_cost ) );
  10. Replies
    10
    Views
    1,965

    Beginner User Input Question

    I need to verify that all numerical input is positive. If not, output an error message that only positive numbers are valid and reprompt one more time. I have looked around, but am pretty confused....
  11. Replies
    2
    Views
    1,623

    Need Help with Beginner Program

    I have finished other elements of the program, but I am not sure where to go on this one. Yes I am a beginner. I don't know how to perform these divisions with leftovers and such and how to make it...
Results 1 to 11 of 11