assign6 - ECOR 1606 Exercise 6 The fuel tank of an oil...

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

View Full Document Right Arrow Icon
ECOR 1606 Exercise 6 The fuel tank of an oil fired steam locomotive consists of three parts as shown in the diagram below: The top and middle parts of the tank are rectangular. The top part is 4 foot by 6 foot and the middle part is 3 foot by 5 foot. The bottom part is circular and has a diameter of 1 foot. Oil levels are measured by inserting a dipstick into the tank. Markings on the dipstick give the oil depth in inches. The dipstick is 1" square. Write a function that, given a dipstick reading (oil depth in inches) computes and returns the amount of oil in the tank (in Imperial gallons, 1 ft 3 = 6.229 Imperial gallons). Test your function by writing a little "throwaway" main program. The tank is dipped at the end of every operating day. Once the tank becomes relatively empty it is refilled to 800 gallons between operating days. Any increase in the dipstick reading means that the tank must have been refilled. Write a function that, given the amount of fuel in the tank at the end of an operating day and the amount of fuel in the
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 02/28/2011 for the course MATH 101 taught by Professor Duke during the Spring '11 term at University of Ottawa.

Page1 / 2

assign6 - ECOR 1606 Exercise 6 The fuel tank of an oil...

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