Question: in basic c programming please solve problem 5 uenned by a and d. Use type long int for all variables. Write a program that prompts

in basic c programming please solve problem 5
in basic c programming please solve problem 5 uenned by a and

uenned by a and d. Use type long int for all variables. Write a program that prompts the user for a and d, then prints the first 100 terms of the series, with 5 terms on each line of output, arranged neatly in columns. Quit early if integer overflow occurs. 5. A geometric series. A geometric progression is a series of numbers in which each term is a constant times the preceding term. The constant, R, is called the common ratio. If the first term in the series is a, then succeeding terms will be aR, R", R... The kth term of the series will be t = a* 1. Write a function term() with three parameters (a, R, and k) that will return the kth term of the series defined by a and R. Use type double for all variables, since the terms grow large rapidly when R is greater than 1. Write a main program that prompts the user for a and R, then prints the terms of the series they define until either 50 terms have been printed, 5 terms per line, or floating-point overflow or underflow occurs. 6. Torque. Given a solid body, the net torque T (Nm) about its axis of rotation is related to the moment of inertia I and the angular acceleration acc (rad/s?) according to the formula for the conservation of angular Trace a momentum: The moment of inertia depends on the shape of the body; for a disk with radius r, it is I = 0.5mr? (a) Write a function named moment() to calculate and return the moment of inertia of a solid disk. It should take two parameters: the radius and mass of the disk: (b) Write a work function that will prompt the user to enter the radius, mass, and angular acceleration of a disk. Limit the inputs to be within these ranges: 0.093 SS 0.207

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!