Assignment 16 — problem solving

Due Monday, October 16 (extension)


Program common_commodities.py

cocoa cotton heating oil platinum sugar

coffee crude oil natural gas silver unleaded gas

copper gold orange juice soybeans wheat

corn

http://www.cs.virginia.edu/~cs1112/datasets/csv/commodities.csv


Suggested algorithm


Sample runs

Enter commodity: natural gas

$2.88 (million BTUs)

Enter commodity: unleaded gas

$1.32 (gallons)

Enter commodity:

Enter commodity: copper

$3.03 (lbs)

Enter commodity: platinum

$932.00 (troy ounces)

Enter commodity: sea shells

pricing unknown

Enter commodity: crude oil

$50.53 (barrels)

Enter commodity:

Enter commodity: orange juice

$1.52 (lbs)

Enter commodity:

Enter commodity: