Computers and Technology

Write a program that asks a user for the coefficients , , and and outputs the roots of that equation. Be aware of the following:

a. Be sure that your request for input and your output both have descriptive text.
b. If the roots have an imaginary component, use when representing the imaginary term in the output. For example, you may output "3 + 7" as a root.
c. Be sure to handle the cases in which any or all coefficients are equal to zero.
d. If A != 0, there could be 2 real distinct roots, 2 real identical roots (one root of multiplicity 2), or complex roots.
e. If A = 0, we are left with + = 0, a linear equation with one root.
f. If A = B = 0, we are left with C = 0, so if user entered a non-zero value of C, write a message to the screen indicating this error.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, labrandonanderson00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
image
Computers and Technology, 24.06.2019 16:30, saadshami2384
You may see the term faq on websites which stands for frequently asked questions this is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation ken has dipped many dark chocolate marshmallows (which you remember the metric system distance units in decreasing order: kilometers, hectometer, decameter, centimeter, millimeter) is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation !
Answers: 1
image
Computers and Technology, 25.06.2019 08:50, JadeCaldwell
A-12.3 an american spy is deep undercover in the hostile country of phonemia. in order not to waste scarce resources, any time he wants to send a message back home, he removes all the punctuation from his message and converts all the letters to uppercase. so, for example, to send the message, “abort the plan! meet at the dark cabin.” he would transmit given such a string, s, of n uppercase letters, describe an efficient way of breaking it into a sequence of valid english words. you may assume that you have a function, valid(s), which can take a character string, s, and return true if and only if s is a valid english word. what is the running time of your algorithm, assuming each call to the function, valid, runs in o(1) time?
Answers: 3
image
Computers and Technology, 25.06.2019 11:30, salutemeimchloe
In a personal computer, the system software
Answers: 1
Do you know the correct answer?
Write a program that asks a user for the coefficients , , and and outputs the roots of that equatio...

Questions in other subjects:

Konu
Mathematics, 23.02.2020 08:07
Konu
Mathematics, 23.02.2020 08:07