subject
Computers and Technology, 18.10.2021 16:50 jahzz

1. Using the top–down method, please describe an algorithm for a program to solve the real roots of a quadratic equation ax2 + bx + c = 0 Your algorithm should ask the user for the coefficients. To calculate the roots of the equation, Your algorithm should calculate the discriminant D given by D = b2 – 4ac. If D > 0, the algorithm displays a message: The equation has two roots and then displays the roots. If D = 0, the algorithm displays a message: The equation has one root, and then displays the root. If D < 0, the algorithm displays a message: The equation has no real roots. Create a flowchart for your algorithm.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
You know the right answer?
1. Using the top–down method, please describe an algorithm for a program to solve the real roots of...
Questions
question
Mathematics, 26.06.2019 06:20
question
Mathematics, 26.06.2019 06:20
question
History, 26.06.2019 06:20
Questions on the website: 13722362