programming help
$30-250 USD
Paguhet në dorëzim
Question 1 (25%)
Write a C program with a separate function which calculates the sine function from the first principles according to the formula below. The error in your function should be less than 1×10-6 which determines the minimum number of terms to be included in the calculation. Compare the result with the standard sin() library function.
Or
Question 2 (25%)
Write a C program that calculates the speed of sound (a) in air at a given temperature T (oF) using the formula below and output to a text file, in the form of a table, the speed of sound at each temperature in (oC) over 0 to 100oC range.
Question 3 (50%)
(a) Design and implement a class Quadratic to represent a quadratic func¬tion, a function of the form .
The class should have the following features:
• Include private data members for coefficients a, b, and c.
• Define a default constructor and a constructor that initializes a, b, and c to the values of its three parameters.
• Overload the input extraction operator to input a Quadratic object as three coefficients.
• Overload the output insertion operator to display the quadratic in this form:
5x^2 + 6x +17.
• Define a member function to evaluate the function at a value for x pro¬vided as a parameter, returning the value calculated as the function re¬sult.
• Define a member function that displays the two real roots of the quadratic or an appropriate message if the function has a double root or no real roots. You need to use the quadratic formula in this function:
(b) Write a program to test your class.
ID Projekti: #1324674
Rreth projektit
54 profesionistë freelancer dërguan një ofertë mesatare prej $55 për këtë punë
I am ready to work. It is a very simple job. Get me hired, and get your assignment done. Thanks
I have the required skills and experience to do this project. I am confident of delivering your project in time.
Bachelor's degree in computer science with 15+ years experience in C/C++ coding. See PMB please.