Get premium membership and access questions with answers, video lessons as well as revision papers.
#include
#include
#include
float main()
{
float a, b, c, d, x1, x2;
printf("Enter the value of the coefficient of x^2 , x, and c respectively\n");
scanf("%f%f%f", &a, &b, &c);
if (a!=0)
{
d=sqrt(b*b - 4 *a*c);
x1=(-b+d)/(2*a);
x2=(-b-d)/(2*a);
printf("The value of x is equal to %.2f\n and\n %.2f", x1, x2);
}
else
{
printf("\t\t\t\n\n\n\n\a*****Since the value of the coefficient of x^2 is zero, hence the equation ain't a quadratic equation*****\n\n\n");
}
return 0;
}
Joshua_white answered the question on March 8, 2018 at 08:41
- Write a C++ program that accepts an integer and checks whether it is even or odd and then prints an appropriate message(Solved)
Write a C++ program that accepts an integer and checks whether it is even or odd and then prints an appropriate message.
Date posted: March 8, 2018. Answers (1)
- Discuss process synchronization in the context of computer operating systems(Solved)
Discuss process synchronization in the context of computer operating systems
Date posted: March 5, 2018. Answers (1)
- What is a Knowledge Based System?(Solved)
What is a Knowledge Based System?
Date posted: March 3, 2018. Answers (1)
- Explain Key challenges Facing Software Engineering.(Solved)
Explain key challenges facing Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Explain types of Software products.(Solved)
Explain types of software products
Date posted: March 3, 2018. Answers (1)
- Differentiate between Software Engineering and System Engineering.(Solved)
Differentiate between Software Engineering and System Engineering
Date posted: March 3, 2018. Answers (1)
- Differentiate between Computer Science and Software Engineering.(Solved)
Differentiate between Computer Science and Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Describe the term Quality assurance in relation to Software Engineering.(Solved)
Describe the term Quality assurance in relation to Software Engineering.
Date posted: March 3, 2018. Answers (1)
- Explain types of Software process Models(Solved)
Explain types of Software process Models.
Date posted: March 3, 2018. Answers (1)
- What Computer Aided Software Engineering (C.A.S.E)?(Solved)
What is Computer Aided Software Engineering (C.A.S.E)?
Date posted: March 3, 2018. Answers (1)
- Explain the three levels of abstraction.(Solved)
Explain the three levels of abstraction.
Date posted: March 3, 2018. Answers (1)
- What is software process and what activities are involved?(Solved)
What is software process and what activities are involved?
Date posted: March 3, 2018. Answers (1)
- Explain the term user requirements.(Solved)
Explain the term user requirements.
Date posted: March 3, 2018. Answers (1)
- What do you understand by the term requirements in software engineering?(Solved)
What do you understand by the term requirements in software engineering?
Date posted: March 3, 2018. Answers (1)
- What is Software design?(Solved)
What is Software design?
Date posted: March 3, 2018. Answers (1)
- What is an algorithm in Computer Science?(Solved)
What is an algorithm in Computer Science?
Date posted: March 3, 2018. Answers (1)
- What is fragmentation? Tell about different types of fragmentation? What are necessary conditions for dead lock?(Solved)
What is fragmentation? Tell about different types of fragmentation? What are necessary conditions for dead lock?
Date posted: March 2, 2018. Answers (1)
- What is virtualization as used in computer.(Solved)
What is virtualization as used in computer.
Date posted: March 2, 2018. Answers (1)
- What is a virtual machine?(Solved)
What is a virtual machine?
Date posted: March 2, 2018. Answers (1)
- What is a network class?(Solved)
What is a network class?
Date posted: March 2, 2018. Answers (1)