Question: 1. Write a C++ program that prompt the user to input the elapsed time for an event in seconds (integer data type). The program then

 1. Write a C++ program that prompt the user to input

1. Write a C++ program that prompt the user to input the elapsed time for an event in seconds (integer data type). The program then outputs the elapsed time in hours, minutes, and seconds. (Example: if the user entered: 9630 the output will be: 2:40:30) 2. Write a C++program to find the roots of quadratic equation, and also display a message to describe the roots: i.e 2 real roots xi and x2 1 root (X2) no real roots, 2 complex roots Hint: Quadratic equation is a second order polynomial with 3 coefficients a, b, c. The quadratic equation is given by: ax+ bx+c-o The solution to the quadratic equation is given by 2 numbers x andx We can change the quadratic equation to the form of (x-x(x-x2)0 Quadratic Formula The solution to the quadratic equation is given by the quadratic formula CU The expression inside the square root is called discriminant and is denoted by A: The quadratic formula with discriminant notation: r1.2- 0 This expression is important because it can tell us about the solution when > 0, there are 2 real roots x1+b+VA)/(2a) and X21(-b-VA)/(2a) When . 0, there is one root x1#x2-b/(2a) when

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!