Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between an external iterator and an internal iterator?
What is the type of this pointer in c++?
What is the difference between global variables and local variable
What are single and multiple inheritances in c++?
What are the classes in c++?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
How would you call C functions from C++ and vice versa?
Does c++ have foreach?
What are the two main components of c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?