Search:

Type: Posts; User: lyojarhhs

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,664

    Thanks. Maybe next time you should try it without...

    Thanks. Maybe next time you should try it without as much sarcasm.
  2. Replies
    5
    Views
    1,664

    Do you mean to change the main to: ...

    Do you mean to change the main to:


    ltb_calculation(deduction, &ltb, &gross_pay);


    Because i'm trying that, and still getting the same error message. I think i misunderstood you?
  3. Replies
    5
    Views
    1,664

    error messages

    If my function prototype is:


    void ltb_calculation(double deduction, double *ltb, double *gross_pay);


    and my main function has the function(with the variables declared as doubles):

    ...
  4. Replies
    12
    Views
    1,387

    i tried flooring it like this: ...

    i tried flooring it like this:


    generations++ ;
    k = 0.1 + ( k_rate_of_change * (generations - 1 )) ;
    population = (1 * ( pow ( M_E,(( 1 - k ) * generations )) )) ;
    if ( population >...
  5. Replies
    12
    Views
    1,387

    if i didnt floor it then how could i fix it????/

    if i didnt floor it then how could i fix it????/
  6. Replies
    12
    Views
    1,387

    What is the size of your container (in feet)? 1...

    What is the size of your container (in feet)? 1
    What is the nutrient level coefficient?0
    What is the incubating temperature (in degrees C.) ?20

    k_rate_of_change =0.057475
    Maximum population...
  7. Replies
    12
    Views
    1,387

    What is the size of your container (in feet)? 1...

    What is the size of your container (in feet)? 1
    What is the nutrient level coefficient?0
    What is the incubating temperature (in degrees C.) ?20

    Maximum population reached after how many...
  8. Replies
    12
    Views
    1,387

    the first sample is: the size is 8, the level is...

    the first sample is: the size is 8, the level is 3, and the temperature is 37. which outputs all the right answers.
    max population reached after 91 generations
    max population 60863795821......
    max...
  9. Replies
    12
    Views
    1,387

    miscalculation?

    We were given samples to test our programs. it works on the first sample, but not the next. there must be an error somewhere in my calculations, because sometimes it works, sometimes it doesnt. any...
  10. Replies
    4
    Views
    1,107

    #include #include main () {...

    #include <stdio.h>
    #include <math.h>
    main ()
    {
    int size, level, temp, max_population, max_pop_generations, population, hours, k, k_size, k_temp, l_level, e, k_rate_of_change, generations ;
    ...
  11. Replies
    4
    Views
    1,107

    some help please..

    my c
  12. Replies
    7
    Views
    1,601

    when i do lc = jdn; i still get the...

    when i do

    lc = jdn;

    i still get the message "Operation between types 'double' and 'int' not allowed.
  13. Replies
    7
    Views
    1,601

    I'm not sure i did what you asked, but i tried: ...

    I'm not sure i did what you asked, but i tried:

    jdn = lc; /*truncate*/
    jdn - lc ;
    hours= jdn * 24 ;
    a= jdn % 60 ;
    minutes= a * 60 ;
    b= minutes % 60 ;
    seconds= b * 60 ;
  14. Replies
    7
    Views
    1,601

    my problem...

    need help with my program, it's a Julian Date conversion. The part that i'm having difficulty with is when you enter a julian date, there are 6 numbers after the decimal. How do i get the 6 numbers...
  15. Thread: New to C...

    by lyojarhhs
    Replies
    3
    Views
    1,023

    New to C...

    I need help with my program, it's a Julian Date conversion. The part that i'm having difficulty with is when you enter a julian date, there are 6 numbers after the decimal. How do i get the 6...
Results 1 to 15 of 16