Question: Write, compile, and run a C program to compute the cube and cube root of the numbers from 49 to 85 in increments of 4.
Write, compile, and run a C program to compute the cube and cube root of the numbers from 49 to 85 in increments of 4. Display the results as shown in the sample run below. Use a field width of 10 for each column. Specify the cube root to 2 decimal places. Note: You may calculate the cube of a number, x, as x* x* x. Note: The chrt function takes an argument of type double and return type is double. Note: Use of the skrt() function requires inclusion of the math.h header file. Refer to the sample run below: NOTE: The Name, Student ID and Section that appears in the output of the program should be your own, not the ones used in the sample run. Sample run 1: Name: Smith, Peter Student ID: 300999999 Section: 001 Iteration Cube(x) Cb. Root(x) 49 205379 3.89 53 57 61 65 69 73 77 81 85 614125 4.40 Press any key to continue... PROGRAM OUTPUT - Provide a table similar to the one above and paste it to your WORD document: */ #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
