subject

Write a program that asks a user for the coefficients and and outputs the roots of that equation. be aware of the following: • be sure that your request for input and your output both have descriptive text. • if the roots have an imaginary component, use when representing the imaginary term in the output. for example, you may output "3 + " as a root. • be sure to handle the cases in which any or all coefficients are equal to zero. o if a ! = 0, there could be 2 real distinct roots, 2 real identical roots (one root of multiplicity 2), or complex roots. o if a = 0, we are left with + = 0, a linear equation with one root. o 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.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, ashleyrobles2676
Consider how gaming consoles initially relied on joysticks and joypads and then made the switch to modern gaming controls, which include analog sticks, buttons and switches, touch controls, accelerometers, motion controls, etc. name at least two kinds of gaming experiences that are possible with these new control devices but were not possible on original joysticks. explain how new technologies made this newer game style possible.
Answers: 1
image
Computers and Technology, 24.06.2019 10:10, nakeytrag
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, cooljariel11
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
image
Computers and Technology, 25.06.2019 00:30, jayzelgaspar8005
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
Answers: 1
You know the right answer?
Write a program that asks a user for the coefficients and and outputs the roots of that equation....

Questions in other subjects: