Assignment_2

Assignment_2 - GENE 121 Assignment 2 Winter 2012 -This...

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

View Full Document Right Arrow Icon
GENE 121 Assignment 2 Winter 2012 -------------------------------------------------------------------------------------------------------------------------------- This assignment will be completed in pairs . You have been matched automatically with a partner. To see who your partner is for each week, check the lists posted on Learn. The lists also indicate the TA who will be marking your assignments for the term. -------------------------------------------------------------------------------------------------------------------------------- In this assignment you will be using the mathematical operators +, -, *, /, and %, and functions in the cmath library to write programs. Don’t forget to include a signed header for your assignment, and to make sure that both students in the group have an electronic copy of all of the code when it is complete . Remember, you should both be contributing equally on all questions on this, and all, assignments. Question 1 Write a program to calculate the distance between 2 points. The program should: Prompt the user for 4 values, x1, y1, x2,
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/01/2012 for the course GENE 121 taught by Professor Smucker during the Winter '11 term at Waterloo.

Page1 / 3

Assignment_2 - GENE 121 Assignment 2 Winter 2012 -This...

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