Thanks. Maybe next time you should try it without as much sarcasm.
Type: Posts; User: lyojarhhs
Thanks. Maybe next time you should try it without as much sarcasm.
Do you mean to change the main to:
ltb_calculation(deduction, <b, &gross_pay);
Because i'm trying that, and still getting the same error message. I think i misunderstood you?
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):
...
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 >...
if i didnt floor it then how could i fix it????/
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...
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...
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...
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...
#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 ;
...
my c
when i do
lc = jdn;
i still get the message "Operation between types 'double' and 'int' not allowed.
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 ;
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...
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...