Question: Write a program to create a table of oil or gas volumes for a specified range. The user should choose the type of product



Write a program to create a table of oil or gas volumes for a specified range. The user should choose the type of product (oil or gas) and input three parameters for the table: the starting volume, ending volume, and the volume increment. Input volumes will all be in cubic meters (m) but the program needs to calculate and show a second unit of measure based on the product chosen. For oil the second unit of measure is barrels (bbl) and for gas it is thousand cubic feet (Mcf). No error checking of input values is required. Use the following conversion factors to calculate the second unit of measure values: Oil: cubic meters * 6.28981077 = barrels Gas: cubic meters * 0.0353146667 = thousand cubic feet Use ONLY topics covered in Modules 1 - 5 to solve question. Below are 2 separate sample runs, user input is shown in bold underline. Sample run #1: = Choose product type (1 = oil, 2 Enter starting volume (m3) : 100 Enter ending volume (m3): 200 Enter volume increment (m3): 10 Cubic Meters (m3) 100.000 110.000 120.000 130.000 140.000 150.000 160.000 170.000 180.000 190.000 200.000 gas): 1 Barrels (bbl) 628.981 691.879 754.777 817.675 880.574 943.472 1006.370 1069.268 1132.166 1195.064 1257.962 Sample Run #2 Choose product type (1 = oil, 2 Enter starting volume (m3): 4200 Enter ending volume (m3): 5000 Enter volume increment (m3): 100 Cubic Meters (m3) 4200.000 4300.000 4400.000 4500.000 4600.000 4700.000 4800.000 4900.000 5000.000 = gas): 2 1000 Cubic Feet (Mcf) 148.322 151.853 155.385 158.916 162.447 165.979 169.510 173.042 176.573
Step by Step Solution
There are 3 Steps involved in it
Certainly Heres a simple Python program that accomplishes the task as desc... View full answer
Get step-by-step solutions from verified subject matter experts
