ece231assn5

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

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 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:
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

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 Right Arrow Icon
Ask a homework question - tutors are online