Search:

Type: Posts; User: pmooney12

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    48
    Views
    7,604

    i figured it out, thanks though. preciate all the...

    i figured it out, thanks though. preciate all the help!
  2. Replies
    48
    Views
    7,604

    thats the compiler we have to submit our work...

    thats the compiler we have to submit our work too. ive made the changes and still no luck
  3. Replies
    48
    Views
    7,604

    ok here is my program #include ...

    ok here is my program


    #include <stdio.h>
    #include <math.h>

    float calculateCharges(float);
    const int NUMBER_OF_CARS= 8;

    main()
  4. Replies
    48
    Views
    7,604

    sorry but i think im confused on which int i you...

    sorry but i think im confused on which int i you are telling me to delete
  5. Replies
    48
    Views
    7,604

    ok so i made a few tweaks and my table is set up...

    ok so i made a few tweaks and my table is set up correctly but my calculations are wrong this is what i got

    Enter the hours for car 1:4

    Enter the hours for car 2:5

    Enter the hours for car...
  6. Replies
    48
    Views
    7,604

    yeah thats how i have mine, but as far as...

    yeah thats how i have mine, but as far as printing the table, is this how my loop is suppose to look?


    for(i=0, i<NUMBER_OF_CARS; i++){
    printf("CARS\t\tHOURS\t\tCHARGES");...
  7. Replies
    48
    Views
    7,604

    this is what my code is suppose to print out ...

    this is what my code is suppose to print out

    Enter the hours for car 1:
    Enter the hours for car 2:
    Enter the hours for car 3:
    Enter the hours for car 4:
    Enter the hours for car 5:
    Enter...
  8. Replies
    48
    Views
    7,604

    yeah it asks the user for the hours of each of...

    yeah it asks the user for the hours of each of the 8 cars and then after that it calculates the charges based on the amount of hours entered, and then it prints a table that lists each car, the hours...
  9. Replies
    48
    Views
    7,604

    i know that in order to total them i need to do:...

    i know that in order to total them i need to do:
    totalHours= totalHours + hours
    charges[i]= calculateCharges(hours)
    totalCharges= totalCharges + charges[i]

    but how exactly do i get each value...
  10. Replies
    48
    Views
    7,604

    ok great! thats working now. so now my next...

    ok great! thats working now. so now my next problem is that i need the hours totaled and the charges totaled, which i have a function to calculate the charges, but as far as getting them all totaled...
  11. Replies
    48
    Views
    7,604

    this is what my code is suppose to print out ...

    this is what my code is suppose to print out

    Enter the hours for car 1:
    Enter the hours for car 2:
    Enter the hours for car 3:
    Enter the hours for car 4:
    Enter the hours for car 5:
    Enter...
  12. Replies
    48
    Views
    7,604

    i am an extreme beginner so i know you probably...

    i am an extreme beginner so i know you probably feel like youre trying to teach a brick wall but i promise i really am trying to do this on my own. its just all another language to me
  13. Replies
    48
    Views
    7,604

    whenever i put the return 0 at the end of my...

    whenever i put the return 0 at the end of my function, it just makes the loop stop after one time through
  14. Replies
    48
    Views
    7,604

    maybe im just an idiot but i didnt see how to...

    maybe im just an idiot but i didnt see how to implement that too my loop
  15. Replies
    48
    Views
    7,604

    sorry if im getting agitated, ive been working on...

    sorry if im getting agitated, ive been working on this thing for about a week now.

    this is my for loop


    #include <stdio.h>
    #include <math.h>

    float calculateCharges(float);
    const int...
  16. Replies
    48
    Views
    7,604

    ha im not trying to be a programmer, its just a...

    ha im not trying to be a programmer, its just a class required for my major. As i said earlier my program compiles but it doesnt actually loop through the for loop, it just goes through one time and...
  17. Replies
    48
    Views
    7,604

    once again, beginner here just asking for help....

    once again, beginner here just asking for help. im the one who has written this code, its not like i had someone do it for me, so you can either fulfill the purpose of the thread and help or just not...
  18. Replies
    48
    Views
    7,604

    any idea why?

    any idea why?
  19. Replies
    48
    Views
    7,604

    apparently there is something wrong with my for...

    apparently there is something wrong with my for loop; it compiles but after it asks for the hours for car 1 it asks for the rest of the cars but just assumes 0 and jumps to the end
  20. Replies
    48
    Views
    7,604

    #include #include float...

    #include <stdio.h>
    #include <math.h>

    float calculateCharges(float);
    const int NUMBER_OF_CARS= 8;

    main()
    {
    int cars[NUMBER_OF_CARS]= {1,2,3,4,5,6,7,8};
    float charges[NUMBER_OF_CARS];
  21. Replies
    48
    Views
    7,604

    ok so is there anyone on this board that will...

    ok so is there anyone on this board that will actually answer my questions with a helpful answer instead of a smart one? i am very new to c programming so smart remarks really just dont help. nobody...
  22. Replies
    48
    Views
    7,604

    ok so here is my program now #include...

    ok so here is my program now


    #include <stdio.h>
    #include <math.h>

    float calculateCharges(float);
    const int NUMBER_OF_CARS= 8;

    main()
  23. Replies
    48
    Views
    7,604

    how does this look? or is it totally off? ...

    how does this look? or is it totally off?


    #include <stdio.h>
    #include <math.h>

    float calculateCharges(float);
    const int NUMBER_OF_CARS= 8;

    main()
  24. Replies
    48
    Views
    7,604

    anybody?

    anybody?
  25. Replies
    48
    Views
    7,604

    and how do i total all of the 8 inputs for hours?

    and how do i total all of the 8 inputs for hours?
Results 1 to 25 of 35
Page 1 of 2 1 2