# I need help with 3 C language exercises.

The exercises come with clear instructions on what to do and what methods to use to solve the exercises.

## Get Help With a similar task to - I need help with 3 C language exercises.

Homework 5 1. (for loop) A 3000 lb vehicle travelling on a road at 100 ft/sec requires a force equal to its mass times its acceleration to stop ( F = ma). The acceleration is given by Where vi = 100 ft/sec vo = 0 ft/sec. Write a program that will calculate the retarding force needed to stop the car at distances of 10, 20, 30, 40, 50, …, 1000 ft. Display the distance value and the corresponding retarding force in tabular form. The units of force are Newtons (N). Your solution must include a user-defined function that returns the force and takes as input initial and final velocity and distance. double force(double velocityInitial, double velocityFinal, double distance, double mass); 2. (do while) The formula for the area of any triangle is: where Write a program that will allow the user to make at least one area calculation, your program will prompt the user if he wishes to continue and it will stop once the user enters the character N or n. Assume that the length units are cm. Your solution must include a user-define function that returns the area of the triangle and its inputs are the three sides. float areaTriangle(float sideA, float sideB, float sideC); 3. (while) Write a program that will estimate the value of from the infinite series: The program will ask the user to enter an integer and then calculate the value of given that many terms. For example, if the user enters 4, then the program should estimate using the first four terms of the sequence, and output the result of the calculation: * Notes: You only need to output the final floating point result. Also notice that the sequence switches from adding and subtracting each term. Also be sure your program can handle the 0 case. Your solution must include a function that returns the estimated value of PI and takes as input the number of terms used to calculated PI double estimatePI(int terms); Some output examples:

Homework 5 1. (for loop) A 3000 lb vehicle travelling on a road at 100 ft/sec requires a force equal to its mass times its acceleration to stop ( F = ma). The acceleration is given by Where vi = 100 ft/sec vo = 0 ft/sec. Write a program that will calculate the retarding force needed to stop the car at distances of 10, 20, 30, 40, 50, …, 1000 ft. Display the distance value and the corresponding retarding force in tabular form. The units of force are Newtons (N). Your solution must include a user-defined function that returns the force and takes as input initial and final velocity and distance. double force(double velocityInitial, double velocityFinal, double distance, double mass); 2. (do while) The formula for the area of any triangle is: where Write a program that will allow the user to make at least one area calculation, your program will prompt the user if he wishes to continue and it will stop once the user enters the character N or n. Assume that the length units are cm. Your solution must include a user-define function that returns the area of the triangle and its inputs are the three sides. float areaTriangle(float sideA, float sideB, float sideC); 3. (while) Write a program that will estimate the value of from the infinite series: The program will ask the user to enter an integer and then calculate the value of given that many terms. For example, if the user enters 4, then the program should estimate using the first four terms of the sequence, and output the result of the calculation: * Notes: You only need to output the final floating point result. Also notice that the sequence switches from adding and subtracting each term. Also be sure your program can handle the 0 case. Your solution must include a function that returns the estimated value of PI and takes as input the number of terms used to calculated PI double estimatePI(int terms); Some output examples:

## Related Questions

Similar orders to I need help with 3 C language exercises.
11
Views
0
Attendance System
You need to ensure that the application uses the most efficient Object-Oriented Techniques, is structured in three-tier architecture, and has proper Object-Relational mapping (ORM) to allow for efficient persistence. The application should have the follow...
26
Views
0
Fundamental Breakout game(brick breaker) using C++
It is a fundamental C++ based project that requires a simple breakout (brick breaker) game coded using the requirements provided in the problem statement pdf attached. Use of pointers is not allowed. Also use of goto, break, or continue statements is not a...
28
Views
0
Build a basic spam email filter based on machine learning using C++.
For this laboratory assignment, you will work in groups (1-3) to build a basic spam email filter based on machine learning using C++. No worries, I wonât ask you to implement the machine learning code! You will be using an existing machine learning ...
24
Views
0 