
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

Transcribed Image Text:3 نقاط
This code display the value of roots in
text boxes for the following quadratic
equation using quadratic formula. When
the value of coefficient (a) equal to zero
or (b2 -4ac) less than zero, the code
write a message box (end the program).
-btvb2-4ac
aX2+ bX+ c= 0, X1,2
2a
Private Sub Command1_Click()
Dim a, b, c, x1, x2, z As Single
a = InputBox("Enter Value of a")
b = InputBox("Enter Value of b")
c = InputBox("Enter Value of c")
z= b^2 - 4 * a *c
%3D
%3D
1-.....
x1 = (-b + Sqr(b ^2 - 4 * a * c))/2 * a
x2 = (-b - Sqr(b ^ 2 - 4 * a * c)) / 2 * a
2-.....
Text1.Text = ""
Text2.Text =""
MsgBox ("End the program"): Exit Sub
3-.....
%3D
4-.....
5-....
End Sub
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 3 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- What is the output when the button is clicked?arrow_forwardthe 'try:' on line 7 is not accurate syntaxarrow_forwardC#: Write a program that asks the user to enter a month (1 for January, 2 for February, etc.) and then prints the number of days in the month. For February, print “28 days”. Enter a month: 5 30 days Do not use a separate if/else branch for each month. Use Boolean operators.arrow_forward
- Consider the following code segment x = 105; if x 95 disp('low') end if x > 100 disp('medium') end end if x > 105 disp('high') else low disp('super high') disp('nuclear') Select all the options that will be displayed in the command window, Nothing will be displayed in the command window medium high super high nucleararrow_forward// A standard mortgage is paid monthly over 30 years. // This program is intended to display 360 payment coupons // for a new borrower. Each coupon lists the month number, // year number, and a friendly mailing reminder. start num MONTHS = 12 num YEARS = 30 string MSG = "Remember to allow 5 days for mailing" num monthCounter = 0 num yearCounter = 30 while yearCounter <= YEARS while monthCounter <= MONTHS output monthCounter, yearCounter, MSG endwhile endwhile stop housekeeping() print "Enter account number or ", QUIT, " to quit " return printCoupons() while yearCounter <= YEARS while monthCounter <= MONTHS print acctNum, monthCounter, yearCounter, MSG monthCounter = monthCounter + 1 endwhile yearCounter = yearCounter + 1 endwhile output "Enter account number or ", QUIT, " to quit " input acctNum return finish() output "End of job" returnarrow_forwardName two button constants that can be used when calling the MessageBox function.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education