{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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

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.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online