Question: Using C programming language solve these problems Problem 5 A nutritionist who works for a fitness club helps members by evaluating their diets. As part

Using C programming language solve these problems Problem 5A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. Then, she calculates the number of calories that result from the fat, using the following formula: calories from fat = fat grams x 9. Next, she calculates the number of calories that result from the carbohydrates, using the following formula: calories from carbs = carb grams x 4. Write a program that will make these calculations. Your program should use two separate functions to calculate fat and carb calories. Write a 3rd function that is called from main to capture user input and call the others.Problem 6Ask the user to enter a number, and print the number out to the 2nd decimal place. For example, if they enter 10.686666666, your program will print 10.69.Problem 7Define a function named z and have it take 3 arguments: score , mu (sample mean), sigma (standard deviation).. Return the calculated z-score. Use your z function on this data to show it works: You have a test score of 190. The test has a mean () of 150 and a standard deviation () of 25.Now define a function named std_error and have it take 2 arguments: sigma (standard deviation), and n. Return the calculated standard error Use your std_error function (you can assume a sample size of 10)Print the answer rounded to the 2nd decimal place.Problem 8Write a function word count that will take a sentence (string) and return to you the number of words in the sentence. Show it works by calling it with Cinderella must get to the ball without her slippers. (Answer should be 9)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!