Assignment — problem solving

Never formally assigned


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:

 



Warning: fopen(/l/cs1112/public_html/defs/htm/181-trailer): Failed to open stream: No such file or directory in /l/cs1112/public_html/defs/php/read.php on line 5
Unable to open file!