subject

Write c code that does the following: 1. interactively read the coefficients of a quadratic equation and compute the two roots. the program must alert if there is no real root, i. e., read and c of 2 + + c = 0, and compute x = −±√ 2− ; note: a. sqrt() is available in math. h b. for putty/omega server, include -lm while compiling, i. e. gcc -lm myprogram. c c. make sure that you add a routine to check the positiveness of the discriminant using the if statement. show actual runs and examples

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
Write c code that does the following: 1. interactively read the coefficients of a quadratic equatio...
Questions
question
Mathematics, 09.02.2021 23:00
question
Mathematics, 09.02.2021 23:00
Questions on the website: 13722363