Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Visual Basic (version 2017) program to compute both roots of a quadratic equation.| Specifically A. Display Your Name B. Display Exam_1 Problem_3 C.
Write a Visual Basic (version 2017) program to compute both roots of a quadratic equation.| Specifically A. Display "Your Name" B. Display "Exam_1 Problem_3 C. Display 'This program computes both roots of a quadratic equation* D. Display "giventhe coefficients A, B, and C E. Real 1 0 F. Real 2 0 G. Imag 0 H. Flag Promptthe User "Do you want to run the program? Y- Yes, N- No I. If Flag-"Y Then a. A Display "Enter A" b. B Display "Enter B" C. C-Display"Enter C" If D 0 Then i. DD= (4*A*C-B"2 )"(0.5) ii. Inag: DDI(2%) iii. Real 1--F(2%) iv. Real_2- -B/(2*A) e. f. Endif g. IfD 0 Then ii. iii. Endif Real-1_-F(2%) Real-2 -B021A) h. ii. Real-1 = (-B+ D"(0.5))/(2%) Real-2 (-B-D105))/(2%) iii. j. Endif k. Display "Solution 1 is& Real 1 && j& Imag) . Display Solution2is & Real 2 & ( )&-j&Imag) J. Else K. Endif L. Loop to H
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