ece231assn6

ece231assn6 - ECE 231 Fall 2010 Programming Assignment 6...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 231 – Fall 2010 Programming Assignment 6 Due: Tuesday, October 26, 2010 at 11:59 PM For this assignment, you will be creating a quad class that contains the variables a, b, and c. The quad class represents a quadratic equation of the form c bx ax + + 2 . This class will contain a mix of constructors, member functions, overloaded operators and friend functions. Create the following data items and class functions: 1. Your data members are a, b and c which are the coefficients of the quadratic equation. 2. You will have three constructors: one with no arguments that default the coefficients to 0.0; one with a single argument that assigns all coefficients to the same value; and, one with three arguments in the order of a, b and c coefficients. 3. A solve() function that has no arguments and solves the quadratic equation by finding its roots (these roots can be two different values, one single value or two complex values). This function prints the result and does not return a value.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/03/2012 for the course ECE 231 taught by Professor Peralta,s during the Fall '08 term at New Mexico.

Page1 / 2

ece231assn6 - ECE 231 Fall 2010 Programming Assignment 6...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online