Question: in basic c programming please solve problem 2 BOU 1. A function. Write a function to compute the formula f(x) = (3x + 1)! Write

in basic c programming please solve problem 2
in basic c programming please solve problem 2 BOU 1. A function.

BOU 1. A function. Write a function to compute the formula f(x) = (3x + 1)! Write a main program that will sum f(x) for the values I = 0 to 1 = 1000 in steps of 50. Print out the value of f(a) and the current sum at every step in a nice neat table. 2. Tables Write a program that contains two function definitions: fi(n,x) = ena x sin(n) S2(na) = = eve x cos(nx) where n is an integer and is a double. In the main program, input a value for x and restrict it to the range 0.1 SS 2.5. Print a neat table showing the values of fin, u) and S2(n,x) as n goes from 0 to 30. Print column headings above the first line. Show all numbers to three decimal places. 3. Bubbles Modify your program from computer exercise 3 in Chapter 7; change the bubble() function so that it takes both o and r as parameters. Then change the main() function to ask the user to enter a value foro as well. Define an error function that prints a message "Input out of range." Use it to screen out values of o less than 0.001 or greater than 0.003 lb/ft and values of r less than 0.0002 or greater than 0.015 ft. Call this function from main()

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!