Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the following problems a complete program is not required. No prototype is r

ID: 3528381 • Letter: F

Question

For the following problems a complete program is not required. No prototype is required. Write a function range() that, given two integers, returns the range between them - that is, the absolute value of their difference. The number of bacteria in a culture can be estimated by N . ekt , where N is the initial population, k is a rate constant, and t is the time. Write a function to calculate the number of bacteria present for given values of N, k, and t. Write a function that accepts a seven-digit integer representing a phone number and displays it on the computer screen in the format abc-defg. A certain city classifies a pollution index less than 35 as "pleasant", 35 through 60 as "unpleasant" and above 60 as "hazardous." Write a function that displays the appropriate classification on the computer screen for a pollution index. Write a function that returns sum of the integers between two integers m and n with m le n. Use a for loop to find the sum m + m + 1 + ... + n and return this sum. Write a function that receives a measurement in grams and returns the corresponding weight in pounds and ounces. (1 g = 0.35274 oz)

Explanation / Answer

A){

int a,b,range;

if(a>b){ range=a-b;

}

if(b>=a){ range=b-a;

}

printf("range between %d and %d is %d ",a,b,range);

}

B) { float n,k,t,e,p,d,number; /* n is initial population*/

d=k*t;

e=2.71;

p=pow(e,d);

number=n*p;

printf("nuber of bacteria is %f ",number);

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote