Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello! Please code this program in c++ format. Please use basic coding skills like college freshman lol. Thank you for your help! Program 6 Quadratic
Hello! Please code this program in c++ format. Please use basic coding skills like college freshman lol.
Thank you for your help!
Program 6 "Quadratic Formula Input: from the user Output: standard output AND file named program6.txt" Write a program that will calculate both roots at a quadratic equation. The pro Your program should print the rools ordered from least to greatest [ec am should ask the user to input a b, and and then write both roots to stan ara output the screen and a file named program txt If the quadratic equetion has a negative discriminant your program should output "NO REAL ROOTS If the two roots are the aame only report one root. ar2 + br + c-0 Sample Input Sample Output 1, -3,-10 3, 6, 3 2, -2, -12 3, -2, 20 Note: Rourd all output to 2 decimal places. 2.00 5.00 1.00 2.00 3.0D NO REAL ROOTS Extra Credit [ec Aso repart the vertex of the parabola. Nole: You must clearly label the extra credi output with the following makers Start Extra Credit ** Extra Cradit Cutput> *End Extra Credit**
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started