Question

(Simple computation)

The formula for computing the discriminant of a quadratic equation ax^2 + bx + c = 0 is b^2 – 4ac. Write a program that computes the discriminant for the equation 3x^2 + 4x + 5 = 0.

Class Name: Exercise01_01Extra

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Python

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any n...

A: The below given python program will obey the following rubrics:Displaying message to user to enter i...

Q: Which of the following describes Routers? There is more than one correct answer.     a. Critical...

A: Router:Connect networks that use different identities of the network.Only transmit the data needed t...

Q: What is the file extension for JSON? name.xml name.JSON name.java name.py

A: The correct option is name.JSONJSON is abbreviated as Java Script Object Notation.A JSON file is a f...

Q: Trace the execution of binary search for key=72  showing each complete pass on the following number ...

A: Answer:Finding the position of binary tree key = 72:

Q: List six operators that can be used when writing a LINQ

A: LINQ: DefinitionLINQ stands for Language Integrated Query which is a part of a .NET framework provid...

Q: Python Coding-(On Pycharm Community Edition)   Create a mini-lottery with TEXT ticket.  The user i...

A: Program Instruction:First import the module of the random numbers.Then read the file ‘ticket.txt’ wi...

Q: Draw the logic diagram for the following Boolean expressions. The diagram should correspond exactly ...

A: a)Logic diagram for the given Boolean expression is,

Q: Microsoft Excel 2016 has many new and improved functions. What do you think is the most beneficial f...

A: Many features have been included in Microsoft Excel 2016, one of the most beneficial function in Exc...

Q: 7. PersonData and CustomerData classesDesign a class named PersonData with the following member vari...

A: The C++ program and the approach are given below:

Q: - Find all responses that have words sound like makro

A: Create a table and name it as EMP.Syntax to create a table –CREATE TABLE table_name (    column1 dat...

Q: True or False: Threads that are part of the same process share the same stack. Briefly explain your ...

A: A thread is the execution unit in a process. A process can range from a single thread to many thread...

Q: 13.9 What is the purpose of an IP address mask? Suppose an IP address is identified as 222.44.66.88/...

A: We are authorized to answer one question at a time, since you have not mentioned which question you ...

Q: Please see question attached.

A: The given expression have following gates:An AND gate between B, C and A with a NOT gate.An XOR gate...

Q: for c++ for binary tree how would find the longest length?? findlongestlength ()?

A: The function “findlongestlength()” is given with the driver program in C++ is as follows,#include &l...

Q: Create a query that uses any THREE of the tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY & CO...

A: Creating the three tables for the given question-For Department-create table DEPARTMENT(DEPARTMENT_N...

Q: A file named prices.txt contains an unknown number of lines, each consisting of a literal float valu...

A: Following questions ask about to calculate the following things in the python file :Creating the fil...

Q: How do you write a program that gets a list of integers from input, and outputs non-negative integer...

A: Program Instructions:Input the list of integers separated by space from the user.Use list compressio...

Q: Write a program that reads a list of words. Then, the program outputs those words and their frequenc...

A: In main all the variable and vector declared.push_back() function is used to insert the words in vec...

Q: In databases, what are the benefits and negatives of using logical views to join tables together? Wh...

A: Click to see the answer

Q: How is the software component of an information system is designed?

A: Information system:It is a set of subsystems used for achieving some objective.It accepts data as in...

Q: In C++: Given the following for loop, write a main program for it and rewrite the code so that it ex...

A: In the given for loop,A variable i initialize with 3The loop will execute until the value of i is le...

Q: Create a complex query based on two or more tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY, COURS...

A: Query:SELECT DEPARTMENT.DEPARTMENT_NAME, DEPARTMENT.DEPARTMENT_ID,SCHOOL.SCHOOL_CODE,COURSE.COURSE_T...

Q: To be done in C++ The only part I need done is the portion where it reads an existing students txt a...

A: Programming Instructions:Create a structure with the name ‘student’ and declare all required variabl...

Q: In Python 3.7: A fuel-economy study was carried out for five models of cars. Each car was driven 100...

A: Python program is given to calculate average miles per gallon in decreasing order with respect to mi...

Q: Is Mass Hysteria Driving the Big Data Market? What are the two pros and two cons of the emerging fie...

A: Big data market is affecting the businesses like a wildfire.Slowly recovering businesses feel anxiet...

Q: For C++ In binary tree how would you find the number of nodes divible by 3? NumOfNodesDivisbleby3()

A: This C++ program counts the number of nodes divisible by 3.In main() function, user insert the nodes...

Q: Provide the code to create an input box for a data field named custPassword, with an input type suit...

A: Create a file with .html extension.Inside <body> tag, create a <form> tag.Inside <for...

Q: INTERNAL CONTROLDuring the past year, Howard Industries has experiencedexcessive employee turnover i...

A: a.One of the control concern is given below:Inner control:Separate the task of programming and lapto...

Q: Write a C++ program You are burning some music CDs for a party. You've arranged a list of songs in t...

A: Following is the C++ program:Header file are declared.Main function is defined.Declare necessary var...

Q: Please answer as soon as posibble.

A: For the first question, the correct option would be (C), that is, O(log­2 n).Reason – If the variabl...

Q: In C++   Declare a function that is called Compute_Avg. The function returns a float data, receives ...

A: Compute_Avg functionFunctions are used to perform certain actions and they are important for reusing...

Q: Function decode(comm, null, 0, comm) is the same asA) NVL(comm, 0)B) decode(comm, comm, comm, 0)C) u...

A:  The function decode() work as if-then-else, the first argument is the expression or column which is...

Q: aBbCC AaBbCcC AaBbCcD IU ab x, x A A Replac 1 Normal 1 No Spac.. Title Heading 1 Heading 2 Subtitle ...

A: High-level languages are simple to utilize but the programmer want to have programs in low-level lan...

Q: 3. Implement a function called findLargestIndex which returns the index of the rowwith the largest s...

A: The function called findLargestIndex is used to find the index of a row whose all element sums are l...

Q: Write one Python statement to start a for loop that would perform 5 iterations.

A: For loop:A for loop implements repeated code execution based on a variable loop counter. This means ...

Q: A _______ is made up of 8 ________.     a. Bit, Bytes     b. Byte, Bits     c. Byte, Cha...

A: A Byte is a data unit that comprises of 8 binary digits in most of the computer systems. In most of ...

Q: Microsoft Excel 2016 has many new and improved functions. What do you think is the most beneficial f...

A: Beneficial functions in MS-Excel 2016:3D data Maps:In the 2013 version, the 3D data map was actually...

Q: Why are access modifiers important to use in OOP? What are some benefits to using them? Explain a si...

A: Use of access modifiers:Access modifiers are a very important feature in object-oriented programming...

Q: For each subnet assign a private IP address (of the form a.b.c.d/y) such that:• The IP range is cont...

A: Part (A): Subnet NameAddress 110.5.73.32210.0.0.0310.4.0.0410.5.64.0510.5.73.0610.5.72.0710.5.0.0810...

Q: Express 384 in IEEE 32-bit floating-point format.

A: Representing 384 in IEEE 32-bit floating-point format:Step 1: Convert the given number “384” to its ...

Q: Create a complex query based on two or more tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY, COURS...

A: CREATE TABLE:Use the statement CREATE TABLE to create a new SQL table.Syntax:CREATE TABLE { table-na...

Q: I need to solve this in C++ code  When analyzing data sets, such as data for human heights or for hu...

A: A C++ program for the given criteria is as follows,//Declare header files#include <iostream>#i...

Q: C++ STL confused between these two functions please explain precisely what are the differences eg:pa...

A: 2 functions will be identified by the number of arguments passed: ⦁ In the given two different metho...

Q: Design a 4bits combinational circuit 2’s complementer (the output generates the 2’s complement of th...

A: Truth Table which generates the 2’s compliment of input binary number is given below:

Q: What are patches and service packs?

A:  Patches: A patch is a small piece of software that is used to correct a problem in another software...

Q: What is the minimum number of processors and amount of RAM required for the ATA Gateway?

A: Minimum number of processors and amount of RAM required for ATA gatewayThe Advanced Threat Analytics...

Q: Explain some reasons for delays to submarine cable repair.

A: A submarine cable is a communication cable locate on the seafloor in the middle of the land-based te...

Q: Python Coding- Except ValueError Using Except ValueError, change the program so that if the user inp...

A: The modified python code and approach are given below: -  Approach: - Importing the essential module...

Q: In C++ Write a program that simulates a Magic 8-Ball. Prompt the user for a question, and randomly s...

A: A C++ program for the given criteria is as follows,/** * @ file main.cpp * @brief This is the progra...

Q: How would merging mobile central office functions and landline central office function into CORD dat...

A: Central office functions:Landline central office functions route the calls between the providers, co...