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.
hi sir... i am a qualified programmer. i can do this job easily in some hours. the solution will be efficient and generic. please consider me. thank you
Hi, We are a group of expert programmers from IIT Delhi and we are ready to complete the work. We assure you that the work will be of the best quality. You will get the work as per your time deadline. Our motto is best quality work and strict on time deadline. Please check PM. Thank you
Dear Client,
Thanks for your posting and we already read your project specification and we are glad to inform you that we can provide you complete solution as per your need and can delight you by that We can provide you 5 years free support We will provide you unlimited revisions of designs and make sure that if yo need some small fixes for development work then we never mind to do that and not consider that as the change request Proper placement of different contents will be there If there will be database in your system then proper design and implementation about that will be provided Communication by email, text chat and voice chat will be there We will assign you project manager, designers, developers, testers and QA experts as per your need
very easy assignment......
I am teaching Programming Fundamentals in local Academy, i give these type of assignments to my students, I have code......
more details in PM.....