ece231assn5

# ece231assn5 - ECE 231 Fall 2010 Programming Assignment 5...

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

ECE 231 – Fall 2010 Programming Assignment 5 Due: Wednesday, October 13, 2010 at 11:59 PM In this assignment, we will create a coordinate class that contains an x-coordinate and y- coordinate. This coordinate represents a point in the Cartesian coordinate system. Class functions will use the current instance of the point and perform certain calculations. In some cases, you will need to have a second coordinate type so that a midpoint or distance can be calculated. This class will have functions that allows the user to assign values to the x and y coordinates (which includes allowing them to enter them at run time), printing out the values to the screen, finding the distance from the center of the Cartesian coordinate system and from another point, finding the angle of the point in both radians and degrees, determining which quadrant the point is located and finding the midpoint between the point and another point. For the coordinate class, create the following data items and class functions:

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

View Full Document
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

ece231assn5 - ECE 231 Fall 2010 Programming Assignment 5...

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

View Full Document
Ask a homework question - tutors are online