Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The code must output as follows: The program must do as the above screenshot shows. ADDITIONALLY, must have a case where if it says no
The code must output as follows:
The program must do as the above screenshot shows. ADDITIONALLY, must have a case where if it says no on whether coefficients are correct, it asks for numbers again; if yes, then it gives you the quadratic formula and gives you the real and complex solutions of the coefficients provided. It also needs to ask if you want to repeat this process; if yes, asks coefficients, but if no, it outputs "Thank you for using the quadratic equation solver"
a) Add dialog to the program from Homework 5 Problem 2. The program should ask user for last and first name, and then greet the user. After that, program asks for the coefficients of a quadratic equation. After user inputs the values, program prints the inputted values on the screen and ask user to confirm that they are correct. If user replies that the values are incorrect, the program should allow user to change the values of the coefficients. Otherwise, program solves quadratic equation and displays the solutions. After this program should ask user whether (s)he would like to solve another quadratic equation or would like to exit. The program must be tolerant to incorrect user inputs (it should not crash if user gives incorrect or unexpected input) - for this you can use the C++ codes posted on CANVAS. (60 points) Tips: start the dialog development with drawing a dialog flowchart - this will be very helpful when you start programming it. You could use example codes that we discussed in the class. b) Design and implement a test plan (explain how we can check whether the program gives correct results or not). Using designed test plan test your code, if the testing reveals bugs, please explain what incorrect behavior you found and how you fixed the code. (40 points) First name: Igor Last name: Tsukanov Hello, Igor Tsukanov! Welcome to the quadratic equation solver! Enter the coeficients of the quadratic equation ax2+bx+c=0 a=1 b=1 c=2 You entered a=1 b=1 c=2 Are these coefficients correct? (Y/N) n Enter the coeficients of the quadratic equation ax2+bx+c=0 a=1 b=2 c=6 You entered a=1 b=2 c=6 Are these coefficients correct? (Y/N)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