Solution to the quadratic equation

Assignment Help C/C++ Programming
Reference no: EM13694890

Question: Prepare a C++ program that will output the solution to the quadratic equation for any range of integer coefficients.

The program should allow the user to input the particular integer coefficients of the quadratic equation and properly output either real or complex number solutions for the roots of the equation (as mathematically necessary for the particular coefficients selected by the user). Note that complex components of a solution are x + yi where x and y are real numbers and i is a symbol representing the sqrt(-1).

implied tasks

- prompt user for the coefficients

- comment the code

-determine the form of the output dependent on the coefficients being input.

Add comments in code section. Code this program in C++ programming.

Reference no: EM13694890

Questions Cloud

How much na2co3 would be required required to neutraliz : Problem- 10 ml of 6M HCl is used during this lab. How much Na2CO3 would be required to neutralize this much acid
Write an application that displays the factorial : Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it.
Program that generates 50,000 random integers : Program that generates 50,000 random integers from 1 to 6 (inclusive). Count the number of times that each number occurs and output the totals
Write a program that reads in babynames : Write a program that reads in babynames.txt and produces two files - Separate the data for the boys and girls. You may enter any names
Solution to the quadratic equation : The program should allow the user to input the particular integer coefficients of the quadratic equation and properly output either real or complex number solutions for the roots of the equation
How much heat is evolved or absorbed when aluminum cools : Problem- How much heat (in J) is evolved or absorbed when a 35.4 g sample of aluminum (specific heat = 0.900 J/(g K)) cools from 88.4oC to 71.9oC
Write a statement that writes both of their values : Write a statement that writes both of their values to standard output in the format
Write a program using visual basic 2012 : Write a program using Visual Basic 2012 that reads a test score from a text box each time a button is clicked, and then shows the two highest scores whenever a second button is clicked. Use two class-level variables to track the two highest scores..
What is the partial pressure of argon : Problem- When 10.33 g of neon is combined in a 23.96 L container at 98oC with 10.61 g of argon, what is the partial pressure (in mmHg) of argon

Reviews

Write a Review

C/C++ Programming Questions & Answers

  C program to mips program

Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0, $s1, $s2, $s3 already.

  Define a string of four characters and converts

Write an assembly program that defines a string of four characters and converts it into an unsigned 16-bit integer.

  Basics of code development on linux and cryptographya

basics of code development on linux and cryptographya prepare a c program that gives simple mono-alphabetic

  Programs written with inheritance

Many programs written with inheritance could be written with composition instead, and vice versa. Rewrite the classes Point3D, Sphere and Cylinder using composition rather than inheritance

  Exponent and significant of a floating point

Write a program that requires the number of bits for the exponent and significant of a Floating Point representation; then requires two decimal real numbers and an operation either sum, subtraction or multiplication.

  What is the output

Suppose that x and y are int variables, z is a double variable, and ch is a char variable. Suppose the input statement is.

  You have in your program an arraylist which includes

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Write a function to compute the magnitude f

write a function to compute the magnitude F and direction angle of a two-dimensional force F by using two components of the force fx,fy as its parameters,returning F and using the reference to pass theta value .

  Write a program that prompts the user to input the masses

Write a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force between the bodies.

  1 write a c program that takes an eastern standard time

1. write a c program that takes an eastern standard time in hours minutes and secondsand prints it out in central

  Gcd between two positive integer numbers

Write a C++ code for calculating the GCD (Greatest Common Divisor) between two positive integer numbers. You  should  use Euclid's  original  subtraction  based  GCD algorithm ( not  using  modulo operator). You should write a function following t..

  Write a pseudo code and perform algorithm analysis

Write a pseudo code and perform algorithm analysis to show the complexity is Log N - Suppose that you have an N-story building and plenty of eggs.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd