Assignment_7

Assignment_7 - GENE 121 Assignment 7 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 7 Winter 2012 -------------------------------------------------------------------------------------------------------------------------------- This assignment will be completed in pairs. You have been matched automatically with a partner. To see who your partner is, login to Learn and check the posted list. For this assignment, one partner should write the functions for question 1 and the main program for question 2, while the second partner should write the main program for question 1 and the functions for question 2. (You can still get help and advice from your partner though.) -------------------------------------------------------------------------------------------------------------------------------- Question 1 C++ Archaeologists are studying the volume of stone in ancient pyramids. The file ancient.txt contains the measurements of a list of blocks, prisms, etc, of material and hollow chambers for a single pyramid. The file contains a letter indicating the type of shape, a bool indicating whether the shape is to be added (1) or subtracted (0) from the total volume, and the dimensions that define the shape. The first two lines of the file are given as: P 1 230.4 146.5 R 0 39.3 0.8 1.1 . . . . This indicates that a pyramid (with volume 2.59228e+006 m
Background image of page 1

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

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

{[ snackBarMessage ]}

Page1 / 3

Assignment_7 - GENE 121 Assignment 7 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